Download the PHP package geocoder-php/arcgis-online-provider without Composer
On this page you can find all versions of the php package geocoder-php/arcgis-online-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download geocoder-php/arcgis-online-provider
More information about geocoder-php/arcgis-online-provider
Files in geocoder-php/arcgis-online-provider
Package arcgis-online-provider
Short Description Geocoder ArcGIS Online adapter
License MIT
Homepage http://geocoder-php.org/Geocoder/
Informations about the package arcgis-online-provider
ArcGIS Online
This is the ArcGIS provider from the PHP Geocoder. This is a READ ONLY repository. See the main repo for information and documentation.
ArcGIS provides 2 APIs for geocoding addresses:
geocodeAddresses
findAddressCandidates
- This API states:
Applications are contractually prohibited from storing the results of geocoding transactions unless they make the request by passing the
forStorage
parameter with a value oftrue
and thetoken
parameter with a valid ArcGIS Online token.
- This API states:
Since a token is required for the geocodeAddresses
API, the
geocodeQuery
method checks the token
property:
- If
token
isNULL
, it uses thefindAddressCandidates
API. - If
token
is notNULL
, it uses thegeocodeAddresses
API.- If the
token
value is invalid or has expired, you will get an error. - Tokens have a maximum lifetime of 14 days.
- Instructions for generating an ArcGIS token
- If the
Usage
Without a token
With a token
Install
Note
It is possible to specify a sourceCountry
to restrict results to this specific
country thus reducing request time (note that this doesn't work on reverse
geocoding).
Contribute
Contributions are very welcome! Send a pull request to the main repository or report any issues you find on the issue tracker.
All versions of arcgis-online-provider with dependencies
geocoder-php/common-http Version ^4.0
willdurand/geocoder Version ^4.0