An Elm interface to the Google Geocoding API
This provides a pipeline friendly, builder-like API. It also provides Elm types for many of Google's JSON structures.
Basic usage:
import Geocoding
import Http
import Task
apiKey : String
apiKey = "your_google_api_key"
type Msg
= MyGeocoderResult (Result Http.Error Geocoder.Response)
geocodeThis : String -> Cmd Msg
geocodeThis str =
Geocoding.requestForAddress apiKey str
|> Geocoding.send MyGeocoderResult
Take a look at the tests for examples of building requests with other parameters