Skip to content

seoplague/openapi-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenApi Geocoder provider

This is the OpenAPI provider from the PHP Geocoder. This is a READ ONLY repository. See the main repo for information and documentation.

Install

composer require seoplague/openapi-provider

Usage

The API now requires an API key. See here for more information.

$httpClient = new \GuzzleHttp\Client();
$provider = new \Geocoder\Provider\OpenApi\OpenApi($httpClient, null, '<your-api-key>);

$result = $geocoder->geocodeQuery(GeocodeQuery::create('ул.Ленина, 19, Минск 220030, Республика Беларусь'));
$result = $geocoder->reverseQuery(ReverseQuery::fromCoordinates(...));

Note

The default language-locale is en-US

Contribute

Contributions are very welcome! Send a pull request to the main repository or report any issues you find on the issue tracker.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages