Skip to content

labzero/elm-google-geocoding

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-google-geocoding

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

Packages

No packages published

Languages

  • Elm 100.0%