fgct-map/maps-api
Composer 安装命令:
composer require fgct-map/maps-api
包简介
Fgct Maps API
README 文档
README
Installation
composer require fgct-map/maps-api:dev-main
Usage
// Import the class namespaces first, before using it directly use FGCTApi\GoogleMaps\Api\GoogleMapsApi; use FGCTApi\Baidu\Api\BaiduApi; use FGCTApi\Goong\Api\Goong; $ggMap = new GoogleMapsApi("<your-key>"); $baidu = new BaiduApi("<your-key>"); // Baidu $baidu = new BaiduApi('<your ak>'); $response = $baidu->driving_route("31.25255, 121.45315", "31.30478, 120.57562", [ 'output' => 'json' ]); $response = $baidu->geocoding("上海市", [ 'output' => 'json' ]); // Goong $goong = new Goong('<your key>'); $response = $goong->geocode("Hà Nội, vietnam"); $response = $goong->autocomplete("Hà Nội");
统计信息
- 总下载量: 42
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-23