arcgis_geocode v0.2.0 ArcgisGeocode.Geocoder
Provides the ability to Geocode an Address using the ArcGIS World Geocoding Service REST API “find” operation.
Summary
Functions
Geocodes an address and returns a ArcgisGeocode.GeocodeResult
struct
Functions
Specs
geocode(String.t) ::
{:ok, struct | nil} |
{:error, binary}
Geocodes an address and returns a ArcgisGeocode.GeocodeResult
struct.
Examples
iex>ArcgisGeocode.Geocoder.geocode("463 Mountain View Dr Colchester VT 05446")
{:ok,
%ArcgisGeocode.GeocodeResult{city: "Colchester",
formatted: "463 Mountain View Dr, Colchester, Vermont, 05446",
lat: 44.51295958611712, lon: -73.18369692467252,
state_abbr: "VT", state_name: "Vermont", street_name: "Mountain View",
street_number: "463", street_type: "Dr", zip_code: "05446"}}