Skip to content

An Elixir package for working with the ArcGIS Geocoding APIs

Notifications You must be signed in to change notification settings

rynam0/arcgis_geocode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArcgisGeocode

Build Status Coverage Status

Provides basic geocoding capabilities via the ArcGIS World Geocoding Service REST APIs

Installation

The package can be installed from Hex as:

  1. Add :arcgis_geocode to your list of dependencies in mix.exs:
def deps do
 [{:arcgis_geocode, "~> 0.2.0"}]
end
  1. Ensure :arcgis_geocode is started before your application:
def application do
 [applications: [:arcgis_geocode]]
end
  1. Configure the :arcgis_geocode application to use your ArcGIS credentials:
config :arcgis_geocode,
  client_id: "YOUR_CLIENT_ID",
  client_secret: "YOUR_CLIENT_SECRET"

Usage

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.51295958611712, lon: -73.18369692467252,
  state_abbr: "VT", state_name: "Vermont", street_name: "Mountain View",
  street_number: "463", street_type: "Dr", zip_code: "05446"}}

About

An Elixir package for working with the ArcGIS Geocoding APIs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages