LaravelPackages.net
Acme Inc.
Toggle sidebar
sapioweb/geocode

PHP geocoding for laravel 5 & 5.1 using Google API

2.365
1
2.0.5
About sapioweb/geocode

sapioweb/geocode is a Laravel package for php geocoding for laravel 5 & 5.1 using google api. It currently has 1 GitHub stars and 2.365 downloads on Packagist (latest version 2.0.5). Install it with composer require sapioweb/geocode. Discover more Laravel packages by sapioweb or browse all Laravel packages to compare alternatives.

Last updated

geocode

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

PHP Address Geocoding for laravel using Google API

Install

composer require sapioweb/geocode

Include Sapioweb\Geocode\GeocodeServiceProvider::class, in your config/app.php

Usage

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']

License

This software is open-sourced software licensed under the MIT license. For questions please email [email protected] or [email protected] or visit Sapioweb.com to learn more and get in contact

Star History Chart