geocoder-php/nominatim-provider
Geocoder Nominatim adapter
Package info
github.com/geocoder-php/nominatim-provider
pkg:composer/geocoder-php/nominatim-provider
Requires
- php: ^8.0
- geocoder-php/common-http: ^4.1
- willdurand/geocoder: ^4.0|^5.0
Requires (Dev)
- geocoder-php/provider-integration-tests: ^1.6.3
- php-http/message: ^1.0
- phpunit/phpunit: ^9.5
Suggests
None
Provides
Conflicts
None
Replaces
None
MIT 1b6852d33e9b558a13d98510fff66e76f4aed9b2
- William Durand <william.durand1.woop@gmail.com>
README
👁 Build Status
👁 Latest Stable Version
👁 Total Downloads
👁 Monthly Downloads
👁 Code Coverage
👁 Quality Score
👁 Software License
This is the Nominatim provider from the PHP Geocoder. This is a READ ONLY repository. See the main repo for information and documentation.
All usage of the Nominatim provider using nominatim.openstreetmap.org must follow the Nominatim Usage Policy !
Install
composer require geocoder-php/nominatim-provider
Usage
If you want to use the "default" Nominatim instance (https://nominatim.openstreetmap.org/) :
$provider = \Geocoder\Provider\Nominatim\Nominatim::withOpenStreetMapServer($httpClient, $userAgent);
If you want to specify yourself the server that will be used :
$provider = new \Geocoder\Provider\Nominatim($httpClient, 'https://nominatim.openstreetmap.org', $userAgent);
Contribute
Contributions are very welcome! Send a pull request to the main repository or report any issues you find on the issue tracker.
