2017 © Pedro Peláez
 

library geoaddress

Geo-address api for laravel. Get latitude and longitude from location

image

marleysidapple/geoaddress

Geo-address api for laravel. Get latitude and longitude from location

  • Thursday, September 8, 2016
  • by marleysidapple
  • Repository
  • 1 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Google geoaddress coordinates

Get coordinates of the place by passing address as a string., (*1)

Prerequisities

this will require guzzle. so first make sure you have installed guzzle., (*2)

"guzzlehttp/guzzle": "~4.0"

Installing

To install, edit your composer.json and add the line mentioned below., (*3)

"marleysidapple/geoaddress": "dev-master"

Then run composer update, (*4)

Configuration

After installation, go to config/app.php. Add, (*5)

 Marleysid\Geoaddress\GeoaddressServiceProvider::class,

in provider array. Add alias as well in alias array, (*6)

 'Geoaddress'=> Marleysid\Geoaddress\Facade\GeoaddressFacade::class,

For publishing configuration. Run following command, (*7)

php artisan vendor:publish

Once publish is completed open config/geo-address.php and set applicationkey, (*8)

Example

include use Marleysid\Geoaddress\Geoaddress; in the controller, (*9)

$response  = \Geoaddress::latlng('Berlin, Germany');

$lat = $response['lat'];
$lng = $response ['lng'];

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us., (*10)

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details, (*11)

Acknowledgments

  • alexpechkarev/google-geocoder

The Versions

08/09 2016

dev-master

9999999-dev https://github.com/marleysidapple/geoaddress

Geo-address api for laravel. Get latitude and longitude from location

  Sources   Download

MIT

The Requires

 

The Development Requires

by Siddhartha

laravel geocoding latitude longitude geo-address