https://github.com/onecodemonkey/amapsdk
AMap SDK for PHP (高德地图 web API)
https://github.com/onecodemonkey/amapsdk
Last synced: 2 months ago
JSON representation
AMap SDK for PHP (高德地图 web API)
- Host: GitHub
- URL: https://github.com/onecodemonkey/amapsdk
- Owner: OneCodeMonkey
- License: mit
- Created: 2021-01-13T06:26:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-14T03:15:28.000Z (over 4 years ago)
- Last Synced: 2025-01-25T17:33:08.303Z (3 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AmapSDK
AMap SDK for PHP (高德地图 web API)基础 HTTP 请求使用协程版 guzzle http,所以支持在 swoole 协程环境下使用。
安装
```bash
composer require onecodemonkey/amap_sdk
```
使用
```php
'XXX',
];
$client = new Amap($options, $this->clientFactory);
$params = [
'types' => 150500, // 地铁站
"offset" => 25,
"page" => 1,
];
$result = $client->aroundSearch("116.740000,40.330000", $params);
var_dump($result);
}
}
```