hivenkay / laravel-easylbs
百度LBS Yun SDK Of EasyLbs For Laravel
dev-master
2017-04-24 09:00 UTC
Requires
- hivenkay/easylbs: dev-master
- illuminate/support: ^5.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-11-09 20:33:42 UTC
README
Laravel 百度 LBS云 SDK Service Provider
EasyLbs
百度云地图LBS SDK 使用前请先阅读百度云LBS服务云文档,本SDK不再对请求参数以及响应作解释
使用说明
安装
composer require hivenkay/easylbs
配置
在app/config.php
中的 providers数组增加:
HivenKay\LaravelLbs\ServiceProvider::class,
在命令行执行php artisan vendor:publish
发布 lbs 配置文件
在app/easy_lbs.php
中配置百度云的ak和 sk
使用
EasyLbs::XXX() GeoTable::XXX() ...
云存储
方法列表:
* create
* getList
* update
* detail
* delete
位置数据表(geotable)
$geoTable = new GeoTable('your-ak','your-sk');
自定义扩展列(column)
$geoColumn = new GeoColumn('your-ak','your-sk');
位置数据(poi)
$geoPoi = new GeoPoi('your-ak','your-sk');
云检索
poi周边搜索
$geoSearch = new GeoSearch('your-ak','your-sk'); //$attributes 请参考百度云文档 $geoSearch->searchOfNearBy($attributes);
poi本地检索
$geoSearch = new GeoSearch('your-ak','your-sk'); //$attributes 请参考百度云文档 $geoSearch->searchOfLocal($attributes);
poi详情检索
$geoSearch = new GeoSearch('your-ak','your-sk'); //$attributes 请参考百度云文档 $geoSearch->searchOfDetail($attributes);