php-extended / php-api-org-openstreetmap-nominatim-object
An implementation of the php-extended/php-api-org-openstreetmap-nominatim-interface library
Package info
gitlab.com/php-extended/php-api-org-openstreetmap-nominatim-object
pkg:composer/php-extended/php-api-org-openstreetmap-nominatim-object
9.0.7
2026-05-20 01:31 UTC
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2026-06-19 23:44:39 UTC
README
An implementation of the php-extended/php-api-org-openstreetmap-nominatim-interface library.
Installation
The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.
- Download
composer.pharfrom their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-api-org-openstreetmap-nominatim-object ^9
Basic Usage
This library may be used the following way :
use PhpExtended\Osm\OsmNominatimApiRequest;
use PhpExtended\Osm\OsmNominatimApiEndpoint;
$api = new OsmNominatimApiEndpoint($client);
$request = new OsmNominatimApiRequest();
$request->setQuery('New York');
$response = $api->searchGeocode($request);
/* @var $response \PhpExtended\Osm\OsmNominatimApiGeocodingResult */
echo $response->getLatitude().' '.$response->getLongitude();
License
MIT (See license file).