HivenKay / Laravel-EasyLbs by hivenkay

百度LBS Yun SDK Of EasyLbs For Laravel
14
1
0
Package Data
Maintainer Username: hivenkay
Maintainer Contact: hivenkay@gmail.com (HivenKay)
Package Create Date: 2016-06-18
Package Last Update: 2017-04-24
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-12-22 15:02:00
Package Statistics
Total Downloads: 14
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 0
Total Forks: 1
Total Open Issues: 0

Laravel-EasyLbs

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);