sapioweb/geocode

PHP geocoding for laravel 5 & 5.1 using Google API
2,365 1
Install
composer require sapioweb/geocode
Latest Version:2.0.5
PHP:>=5.5.0
License:MIT
Last Updated:Sep 21, 2018
Links: GitHub  ·  Packagist
Maintainer: SapioBeasley

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 andreas@sapioweb.com or info@sapioweb.com or visit Sapioweb.com to learn more and get in contact

Related Packages

sapioweb/crudhelper

Helper provider to assist in general crud functions of a restful controller

197 1
mercurial/geocode

Google Geocoding API for Laravel 4

35 0
jcf/geocode

Google Geocoding API for Laravel

163,417 48
ozankurt/google-analytics

Laravel Google Analytics

17,323 75
mbarwick83/shorty

Google Url Shortener API Package for Laravel 5.1

204,507 31