This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0
Decode GeoJSON (RFC 7946) into an Elm data structure
version 1.1.0
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.1
Committed At 2016-11-17 16:06:48 UTC
elm-lang/core 5.0.0 <= v < 6.0.0 5.1.1

Modules

README

elm-geojson

elm package install -y mgold/elm-geojson

A library to decode (and encode) geoJson into a format that's nice to use in Elm. Turn this:

{ "type": "LineString",
  "coordinates": [ [100.0, 0.0], [101.0, 1.0] ],
  "bbox": [-10.0, -10.0, 10.0, 10.0]
}

into this:

(Geometry (LineString [ ( 100, 0, [] ), ( 101, 1, [] ) ]), Just [-10, -10, 10, 10])

For more details, see the GeoJson module docs.

Testing

npm install -g elm-test
elm test

The test suite includes a fuzz testing that causes testing to take anywhere from half a second to thirty seconds. Very occasionally, it may cause a JS out of memory error.

If you get an actual failing test, please file a bug that includes the seed to reproduce.