ArcgisGeocode v0.1.0 ArcgisGeocode.Authenticator
Provides the ability to request an access token from the ArcGIS World Geocoding Service APIs.
Summary
Functions
Requests an access token from the ArcGIS API for use in geocoding requests
Returns an access token from the ArcgisGeocode.Cache
if one exists and is not yet expired
Functions
Specs
authenticate :: {atom, String.t}
Requests an access token from the ArcGIS API for use in geocoding requests.
For successful requests, the resultant access token is stored in the ArcgisGeocode.Cache
Agent.
Specs
get_token :: {atom, String.t}
Returns an access token from the ArcgisGeocode.Cache
if one exists and is not yet expired.
When a token does not yet exist in the cache or the existing token is expired, an authentication request is made and
the resultant token is stored in the ArcgisGeocode.Cache
for use in subsequent geocoding requests.