ArcGIS - Esri ArcGIS API library for Elixir

ArcGIS for Elixir provides convenient, idiomatic access to ArcGIS REST APIs to Elixir applications. It supports user authentication, ArcGIS Portal discovery and item queries, feature service creation and queries. Both ArcGIS Online and ArcGIS Enterprise installations are supported.

Example of usage:

{:ok, portal} = ArcGIS.Portal.discover("https://arcgis.com")
{:ok, portal_info} = ArcGIS.Portal.self(portal)

{:ok, session_token} = ArcGIS.User.generate_token(user, password, portal)

service_params = %ArcGIS.Feature.Service.CreateParameters{name: "ExArcTest4"}
{:ok, service} = ArcGIS.Feature.Service.create(portal, service_params, auth_token: session_token)

{:ok, features} = ArcGIS.Feature.query(service, 0, limit: 2000, 
                                       auth_token: session_token, geometry?: true)

Feature requests, usage feedback, bug reports, PRs, etc. are all welcome!

2 Likes