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

This package is auto-updated.

Last update: 2022-11-07 02:01:19 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Code Intelligence Status Total Downloads Version

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.