Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luffyzhao/php-amapweb
高德地图Web接口调用
https://github.com/luffyzhao/php-amapweb
Last synced: about 1 month ago
JSON representation
高德地图Web接口调用
- Host: GitHub
- URL: https://github.com/luffyzhao/php-amapweb
- Owner: luffyzhao
- Created: 2017-12-15T08:07:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T09:35:41.000Z (almost 7 years ago)
- Last Synced: 2024-10-12T10:47:02.111Z (2 months ago)
- Language: PHP
- Size: 18.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## php调用高德地图web接口sdk
### 安装方法
```
composer require luffyzhao/php-amap-web
```### 使用方法
#### 地理编码API
```php
include __DIR__ . '/../vendor/autoload.php';use \luffyzhao\amapWeb\Georegeo;
$data = [['name' => '深圳市南山区科苑北路科兴科学园A4栋501室'], ['name' => '深圳市光明新区高新路研祥智谷研发楼']];
$geore = new Georegeo($data, ['addressKey' => 'name']);
$geore->setAmapKey('your key')->solve();
print_r($geore->toArray());
```