sapioweb/geocode
Composer 安装命令:
composer require sapioweb/geocode
包简介
PHP geocoding for laravel 5 & 5.1 using Google API
README 文档
README
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
统计信息
- 总下载量: 2.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-06