Geo-address api for laravel. Get latitude and longitude from location
Get coordinates of the place by passing address as a string.
this will require guzzle. so first make sure you have installed guzzle.
To install, edit your
composer.json and add the line mentioned below.
After installation, go to
in provider array. Add
alias as well in alias array
configuration. Run following command
php artisan vendor:publish
Once publish is completed open
config/geo-address.php and set
use Marleysid\Geoaddress\Geoaddress; in the controller
$response = \Geoaddress::latlng('Berlin, Germany'); $lat = $response['lat']; $lng = $response ['lng'];
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Siddhartha Bhatta - Initial work - marleysidapple
This project is licensed under the MIT License - see the LICENSE.md file for details