Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hanson/gaode-sdk
高德地图 SDK
https://github.com/hanson/gaode-sdk
Last synced: 24 days ago
JSON representation
高德地图 SDK
- Host: GitHub
- URL: https://github.com/hanson/gaode-sdk
- Owner: Hanson
- License: mit
- Created: 2017-06-23T06:46:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-11T09:44:34.000Z (about 5 years ago)
- Last Synced: 2024-03-14T21:28:12.178Z (8 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gaode-sdk
高德地图 SDK## 安装
`composer require hanson/gaode-sdk -vvv`
## 使用
```php
$gaode = new \Hanson\Gaode\Gaode([
'key' => 'b725ee82ee2e4af3ac46951b0cca0af5',
]);// 地址编码
$gaode->regeo([
'location' => '23.12299,113.26412'
]);// 地址你编码
$gaode->geo($params);// 步行路径规划
$gaode->directionWalking($parms);// 骑行路径规划
$gaode->directionWalking($parms);// 公交车路径规划
$gaode->directionTransit($parms);// 驾车路径规划
$gaode->directionDriving($parms);// 距离测量
$gaode->distance($parms);// 地址输入提示
$gaode->inputTips($parms);
```