Note: this page is only a draft, but this project is hosted on a public repository where anyone can contribute. Learn how to contribute in less than a minute.
Location-based services
Location-based services, formerly known as ready to use services
are several services hosted on ArcGIS Online that can be consumed though a REST API.
Table of contents
Introduction
Some of theres are free and some consume credits, those that consume credits require to be authenticated.
Services
Geocoding (geocoder service)
Service URL: geocode.arcgis.com
Learn more about the Geocoding and Place Search service and the Geocoder coverage.
HowTos: Geocoding API DevLabs Overview of the World Geocoding Service
Trick: Custom geocoder with candidates filtered by URL: http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer?sourceCountry={{Country_code}}
For example:
http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer?sourceCountry=ESP
Routing and Directions (routing service)
Service URLs: route.arcgis.com & logistics.arcgis.com
HowTos:
Demographics and GeoEnrichment (GeoEnrichment service)
Service URL: geoenrich.arcgis.com
HowTos:
Spatial Analysis (Spatial Analysis service)
Service URL: analysis.arcgis.com
HowTos: Spatial Analysis API DevLabs
Elevation (Elevation service)
Service URL: elevation.arcgis.com
Get started with Elevation Analysis services
Packaging (Offline Packaging Service)
Service URL: packaging.arcgis.com
REST API to calculate credit consumption
This REST API is not documented but if you debug the analysis tools inside the ArcGIS Online Web Viewer whenever you click the "Show credits" link you will find an AJAX request to this endpoint: https://analysis.arcgis.com/arcgis/rest/services/tasks/GPServer/exts/Estimate/<OPERATION>
.
Use it to find the parameters you need to send in order to do the calculations.
More resources
Pending:
- Geometry engine
- Print service
- ...