| Package Data | |
|---|---|
| Maintainer Username: | SapioBeasley |
| Maintainer Contact: | andreas@sapioweb.com (Andreas Beasley) |
| Package Create Date: | 2015-12-01 |
| Package Last Update: | 2018-09-21 |
| Home Page: | http://sapiobeasley.github.io/geocode/ |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 03:02:20 |
| Package Statistics | |
|---|---|
| Total Downloads: | 2,365 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 2 |
| Total Forks: | 1 |
| Total Open Issues: | 0 |
PHP Address Geocoding for laravel using Google API
composer require sapioweb/geocode
Include Sapioweb\Geocode\GeocodeServiceProvider::class, in your config/app.php
use Sapioweb\Geocode\GeoCode;
Route::get('/', function () {
$geocode = new Geocode;
$address = '1600 Wigwam Pkwy, Henderson, NV 89074';
$geocode = $geocode->getCoordinates($address);
return view('welcome')->with(['geocode' => $geocode]);
});
Pull Latitude: $geocode['geometry']['location']['lat']
Pull Longitude: $geocode['geometry']['location']['lng']
This software is open-sourced software licensed under the MIT license. For questions please email andreas@sapioweb.com or info@sapioweb.com or visit Sapioweb.com to learn more and get in contact