hivenkay/laravel-easylbs is a Laravel package for 百度lbs yun sdk of easylbs for laravel.
It currently has 1 GitHub stars and 14 downloads on Packagist.
Install it with composer require hivenkay/laravel-easylbs.
Discover more Laravel packages by hivenkay
or browse all Laravel packages to compare alternatives.
Last updated
Laravel 百度 LBS云 SDK Service Provider
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 = new GeoTable('your-ak','your-sk');
$geoColumn = new GeoColumn('your-ak','your-sk');
$geoPoi = new GeoPoi('your-ak','your-sk');
$geoSearch = new GeoSearch('your-ak','your-sk');
//$attributes 请参考百度云文档
$geoSearch->searchOfNearBy($attributes);
$geoSearch = new GeoSearch('your-ak','your-sk');
//$attributes 请参考百度云文档
$geoSearch->searchOfLocal($attributes);
$geoSearch = new GeoSearch('your-ak','your-sk');
//$attributes 请参考百度云文档
$geoSearch->searchOfDetail($attributes);