fabiommendes/elm-latlng/1.0.0

NOTE: the latest version is 1.1.0

Latitude and Longitude calculations

This module implement types to represent locations as a Latitude/Longitude pair.

Examples

We can create LatLng objects from coordinates and perform explicit manipulations. The modules tries to be as type safe as possible and uses units from Elm/Units?? to ensure consistency.

import LatLng as exposing (..)
import LatLng.Places as Places
import Unit exposing meters

loc1 = Places.br.north
loc2 = Places.br.south
distance loc1 loc2 ==> (meters 5000)