高德地图API php-sdk

项目地址: Github/AxiosCros/amap-api-sdk

已支持的高德地图的功能

  • 云图 Api
  • WEB Api
  • URL Api

安装

composer require axios/amap-api-sdk

使用示例

namespace AMap;

use amap\sdk\AMap;
use amap\sdk\CloudMap\CloudMap;

require_once __DIR__. "/../vendor/autoload.php";

//Auth
AMap::auth("your amap key","your amap secret");

//Request
$request = \amap\sdk\CloudMap\CloudMap::search()->dataList();
$request->setTableId("table id");
$response = $request->request();

//Get Response Content(array)
dump($response->getContent());
添加新评论