codeblog.pro / geo-coder
The geo-coder package helps to determine the coordinates by an address or to get the address by the coordinates. Supports multiple providers.
v0.2
2020-10-06 11:48 UTC
Requires
- php: >=7.4
- codeblog.pro/geo-coordinates: ^1.0.0
- codeblog.pro/geo-location-address: ^0.0.1
- guzzlehttp/guzzle: ^7.0
- psr/http-message: ^1.0
Requires (Dev)
- nunomaduro/phpinsights: ^1.14
- phpstan/phpstan: ^0.12.36
- phpunit/php-code-coverage: ^8.0
- phpunit/phpunit: ^9.0.0
- squizlabs/php_codesniffer: ^3.0
README
The geo-coder package helps to determine the coordinates by an address or to get the address by the coordinates. Supports multiple providers.
Install
Via Composer
$ composer require codeblog.pro/geo-coder
Usage
// Moscow Sheremetyevo International Airport coordinates for example. $locationOne = $geoCoder->getLocationByCoordinates(55.966784, 37.415715, 'en'); var_dump($locationOne); // Oslo university address for example $locationTwo = $geoCoder->getLocationByAddress('Oslo, Problemveien 7, 0315', 'ru'); var_dump($locationTwo);
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email panov@codeblog.pro instead of using the issue tracker.
Credits
License
The Apache License License. Please see License File for more information.