PHPackages                             geocoder-php/arcgis-online-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. geocoder-php/arcgis-online-provider

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

geocoder-php/arcgis-online-provider
===================================

Geocoder ArcGIS Online adapter

4.5.0(1y ago)4409.7k—9.1%23MITPHPPHP ^8.0CI failing

Since Jun 17Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/geocoder-php/arcgis-online-provider)[ Packagist](https://packagist.org/packages/geocoder-php/arcgis-online-provider)[ Docs](http://geocoder-php.org/Geocoder/)[ RSS](/packages/geocoder-php-arcgis-online-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (5)Versions (7)Used By (3)

ArcGIS Online
=============

[](#arcgis-online)

[![Build Status](https://camo.githubusercontent.com/1f80a246920275f7889676c75dd7e3b8fff89ce07189c5cd44279f755611aa12/68747470733a2f2f7472617669732d63692e6f72672f67656f636f6465722d7068702f6172636769732d6f6e6c696e652d70726f76696465722e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/geocoder-php/arcgis-online-provider)[![Latest Stable Version](https://camo.githubusercontent.com/1931234c9e2d484c024731140229a84fd72730b2ae6f0866780f462156434297/68747470733a2f2f706f7365722e707567782e6f72672f67656f636f6465722d7068702f6172636769732d6f6e6c696e652d70726f76696465722f762f737461626c65)](https://packagist.org/packages/geocoder-php/arcgis-online-provider)[![Total Downloads](https://camo.githubusercontent.com/c4ebe0cbbe7ce94e6c2a7f504781fbac48cfdd455ef83e7e6c76009f54063f09/68747470733a2f2f706f7365722e707567782e6f72672f67656f636f6465722d7068702f6172636769732d6f6e6c696e652d70726f76696465722f646f776e6c6f616473)](https://packagist.org/packages/geocoder-php/arcgis-online-provider)[![Monthly Downloads](https://camo.githubusercontent.com/8bd50b048057c5b4df17c4e6d8b22fd1e8c1bb93da9f038fc0cc96c10656486a/68747470733a2f2f706f7365722e707567782e6f72672f67656f636f6465722d7068702f6172636769732d6f6e6c696e652d70726f76696465722f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/geocoder-php/arcgis-online-provider)[![Code Coverage](https://camo.githubusercontent.com/daa3e9ea977b5cfb0cf9d4d072dfd5db23766d041c966852678e3de04201b0f0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f67656f636f6465722d7068702f6172636769732d6f6e6c696e652d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/geocoder-php/arcgis-online-provider)[![Quality Score](https://camo.githubusercontent.com/5d140974c3a648c152226f3951f91f7eb097a37aea9457b261b1f7a5c33ef7a1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f67656f636f6465722d7068702f6172636769732d6f6e6c696e652d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/geocoder-php/arcgis-online-provider)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

This is the ArcGIS provider from the PHP Geocoder. This is a **READ ONLY** repository. See the [main repo](https://github.com/geocoder-php/Geocoder) for information and documentation.

ArcGIS provides 2 APIs for geocoding addresses:

- [`geocodeAddresses`](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-geocode-addresses.htm)
- [`findAddressCandidates`](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-find-address-candidates.htm)
    - 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 of `true` and the `token` parameter with a valid ArcGIS Online token.

Since a token is required for the `geocodeAddresses` API, the `geocodeQuery` method checks the `token` property:

- If `token` is `NULL`, it uses the `findAddressCandidates` API.
- If `token` is not `NULL`, it uses the `geocodeAddresses` 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](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-authenticate-a-request.htm#GUID-F2BECC7B-5042-4D89-87FC-4CE31012E66D)

Usage
-----

[](#usage)

### Without a token

[](#without-a-token)

```
$httpClient = new \Http\Discovery\Psr18Client();

$provider = new \Geocoder\Provider\ArcGISList\ArcGISList($httpClient);

// Uses the `findAddressCandidates` operation. Result storage is prohibited.
$result = $geocoder->geocodeQuery(GeocodeQuery::create('Buckingham Palace, London'));
```

### With a token

[](#with-a-token)

```
$httpClient = new \Http\Discovery\Psr18Client();

// Your token is required.
$provider = \Geocoder\Provider\ArcGISList\ArcGISList::token($httpClient, 'your-token');

// Uses the `geocodeAddresses` operation. Result storage is permitted.
$result = $geocoder->geocodeQuery(GeocodeQuery::create('Buckingham Palace, London'));
```

### Install

[](#install)

```
composer require geocoder-php/arcgis-online-provider
```

### Note

[](#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

[](#contribute)

Contributions are very welcome! Send a pull request to the [main repository](https://github.com/geocoder-php/Geocoder) or report any issues you find on the [issue tracker](https://github.com/geocoder-php/Geocoder/issues).

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance59

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~571 days

Recently: every ~436 days

Total

6

Last Release

398d ago

PHP version history (5 changes)4.0.0PHP ^7.0

4.1.0PHP ^7.2

4.3.0PHP ^7.3 || ^8.0

4.4.0PHP ^7.4 || ^8.0

4.5.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

![](https://www.gravatar.com/avatar/b434ff5f6f9dcc7095f45c43254299b3cc8f6c83e9a757a80a6b7d229a4c9701?d=identicon)[jbelien](/maintainers/jbelien)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (29 commits)")[![jbelien](https://avatars.githubusercontent.com/u/1150563?v=4)](https://github.com/jbelien "jbelien (20 commits)")[![Chris53897](https://avatars.githubusercontent.com/u/7104259?v=4)](https://github.com/Chris53897 "Chris53897 (7 commits)")[![wantell](https://avatars.githubusercontent.com/u/47642308?v=4)](https://github.com/wantell "wantell (2 commits)")[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (1 commits)")[![norkunas](https://avatars.githubusercontent.com/u/2722872?v=4)](https://github.com/norkunas "norkunas (1 commits)")[![JaZo](https://avatars.githubusercontent.com/u/3475007?v=4)](https://github.com/JaZo "JaZo (1 commits)")[![fbuchlak](https://avatars.githubusercontent.com/u/30214087?v=4)](https://github.com/fbuchlak "fbuchlak (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/geocoder-php-arcgis-online-provider/health.svg)

```
[![Health](https://phpackages.com/badges/geocoder-php-arcgis-online-provider/health.svg)](https://phpackages.com/packages/geocoder-php-arcgis-online-provider)
```

###  Alternatives

[geocoder-php/google-maps-provider

Geocoder GoogleMaps adapter

18517.9M44](/packages/geocoder-php-google-maps-provider)[geocoder-php/plugin

Plugins to Geocoder providers

705.1M2](/packages/geocoder-php-plugin)[geocoder-php/here-provider

Geocoder here adapter

131.2M3](/packages/geocoder-php-here-provider)[smile/module-store-locator

Smile Store Locator

51516.6k4](/packages/smile-module-store-locator)[geocoder-php/mapbox-provider

Geocoder Mapbox adapter

111.0M2](/packages/geocoder-php-mapbox-provider)[smile/module-map

Smile Map Utilities Module

10536.8k2](/packages/smile-module-map)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
