Geocoder Extra

October 13, 2016 · View on GitHub

Build
Status Latest Stable
Version

This repository hosts Geocoder extra features that do not belong to the core but can be nonetheless interesting to share with other developers. It mostly contains providers.

Installation

Use Composer to install the package:

composer require geocoder-php/geocoder-extra

Usage

Please, read the Geocoder's documentation.

Providers

ProviderAddress?IPv4?IPv6?Reverse?SSL Support?CoverageTerms
OGD ViennayesnonoyesyesVienna / Austria
NaveryesnonononoSouth Korea
GeocodioyesnonoyesnoUSA
IpInfonoyesyesnono
Hereyesnonoyesno
IpGeoBasenoyesnoyesnoRussia
BaiduyesnonoyesnoChinaAPI key required
DataScienceToolkityesyesnononoUSA, Canada
GeoCoder.cayesnonoyesyesUSA, CanadaOptional API key can be provided. $1 CAD for 400 lookups
GeoCoder.usyesnonononoUSAFree throttled service. $50 USD for 20000 requests for paid service
OIORestyesnonoyes noDenmark
IGN OpenLSyesnonononoFranceAPI key required
what3wordsyes (3 word address only)nonoyesyesGlobalAPI key required
ip2cnoyesnonono

Contributing

See Geocoder's CONTRIBUTING file.

Unit Tests

To run unit tests, you'll need cURL and a set of dependencies you can install using Composer:

composer install --dev

Once installed, run the following command:

phpunit

You'll obtain some skipped unit tests due to the need of API keys.

Rename the phpunit.xml.dist file to phpunit.xml, then uncomment the following lines and add your own API keys:

<php>
    <!-- <server name="BAIDU_API_KEY" value="YOUR_API_KEY" /> -->
    <!-- <server name="IGN_WEB_API_KEY" value="YOUR_API_KEY" /> -->
</php>

You're done!

Contributor Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

geocoder-extra is released under the MIT License. See the bundled LICENSE file for details.