arcgis_geocode v0.3.0 ArcgisGeocode View Source
Provides the ability to Geocode an Address using the ArcGIS World Geocoding Service REST API “find” operation.
Link to this section Summary
Functions
Geocodes an Address and returns an ArcgisGeocode.GeocodeResult struct
Starts the application and the ArcgisGeocode.TokenCache GenServer
Link to this section Functions
Link to this function
geocode(address)
View Source
geocode(String.t()) :: {:ok, struct() | nil} | {:error, binary()}
Geocodes an Address and returns an ArcgisGeocode.GeocodeResult struct.
Examples
iex>ArcgisGeocode.geocode("463 Mountain View Dr Colchester VT 05446")
{:ok,
%ArcgisGeocode.GeocodeResult{city: "Colchester",
formatted: "463 Mountain View Dr, Colchester, Vermont, 05446",
lat: 44.5129518506838, lon: -73.1836996439205,
state_abbr: "VT", state_name: "Vermont", street_name: "Mountain View",
street_number: "463", street_type: "Dr", zip_code: "05446"}}
Starts the application and the ArcgisGeocode.TokenCache GenServer.
Note: Developers typically won’t be calling this function directly.