cmslz/gaode-map
Composer 安装命令:
composer require cmslz/gaode-map
包简介
高德地图
README 文档
README
PHP高德地图文档
示例
$application = new \Cmslz\GaodeMap\Application('e10418beexxxxfc'); //$result = $application->webServerApi()->geoCodeGeo('北京市朝阳区阜通东大街6号'); //$result = $application->webServerApi()->geoCodeReGeo('116.482086,39.990496'); //$result = $application->webServerApi()->directionWalkingV3('116.434307,39.90909', '116.434446,39.90816'); //$result = $application->webServerApi()->directionWalkingV5('116.434307,39.90909', '116.434446,39.90816'); //$result = $application->webServerApi()->directionBusV3('116.434307,39.90909', '116.434446,39.90816','广州'); //$result = $application->webServerApi()->directionBusV5('116.434307,39.90909', '116.434446,39.90816', '110101', '110101'); //$result = $application->webServerApi()->directionDrivingV3('116.434307,39.90909', '116.434446,39.90816', 'all'); //$result = $application->webServerApi()->directionDrivingV5('116.434307,39.90909', '116.434446,39.90816'); //$result = $application->webServerApi()->directionBicyclingV4('116.434307,39.90909', '116.434446,39.90816'); //$result = $application->webServerApi()->directionBicyclingV5('116.434307,39.90909', '116.434446,39.90816'); //$result = $application->webServerApi()->directionEtdDrivingV4('116.434307,39.90909', '116.434446,39.90816', time() + 6400, 10, 10); //$result = $application->webServerApi()->directionDistanceV3('116.434307,39.90909', '116.434446,39.90816'); //$result = $application->webServerApi()->directionElectrobikeV5('116.434307,39.90909', '116.434446,39.90816'); //$result = $application->webServerApi()->district(['keywords'=>'阜通东大街']); //$result = $application->webServerApi()->placeTextV3('阜通东大街'); //$result = $application->webServerApi()->placeTextV5('阜通东大街'); //$result = $application->webServerApi()->placeAroundV3('116.473168,39.993015'); //$result = $application->webServerApi()->placeAroundV5('116.473168,39.993015'); //$result = $application->webServerApi()->placePolygonV3('116.460988,40.006919|116.48231,40.007381|116.47516,39.99713|116.472596,39.985227|116.45669,39.984989|116.460988,40.006919'); //$result = $application->webServerApi()->placePolygonV5('116.460988,40.006919|116.48231,40.007381|116.47516,39.99713|116.472596,39.985227|116.45669,39.984989|116.460988,40.006919'); //$result = $application->webServerApi()->placeDetailV3('B000A7HS3L'); //$result = $application->webServerApi()->placeDetailV5('B000A7HS3L'); //$result = $application->webServerApi()->aoiPolyline('B000A7HS3L'); //$result = $application->webServerApi()->ip(); //$result = $application->webServerApi()->staticMap(10,'116.434307,39.90909')->getResult(); //$result = $application->webServerApi()->convert('116.481499,39.990475'); //$result = $application->webServerApi()->weatherInfo('110101'); //$result = $application->webServerApi()->inputTips('北京'); $result = $application->webServerApi()->driving([ [ "x" => 116.478928, "y" => 39.997761, "sp" => 19, "ag" => 0, "tm" => 1478031031 ], [ "x" => 116.478907, "y" => 39.998422, "sp" => 10, "ag" => 0, "tm" => 2 ], [ "x" => 116.479384, "y" => 39.998546, "sp" => 10, "ag" => 110, "tm" => 3 ], [ "x" => 116.481053, "y" => 39.998204, "sp" => 10, "ag" => 120, "tm" => 4 ], [ "x" => 116.481793, "y" => 39.997868, "sp" => 10, "ag" => 120, "tm" => 5 ], [ "x" => 116.482898, "y" => 39.998217, "sp" => 10, "ag" => 30, "tm" => 6 ], [ "x" => 116.483789, "y" => 39.999063, "sp" => 10, "ag" => 30, "tm" => 7 ], [ "x" => 116.484674, "y" => 39.999844, "sp" => 10, "ag" => 30, "tm" => 8 ] ]); var_dump($result);
cmslz/gaode-map 适用场景与选型建议
cmslz/gaode-map 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 10 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「高德地图」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cmslz/gaode-map 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cmslz/gaode-map 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cmslz/gaode-map 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Alfabank REST API integration
AMap SDK for PHP (高德地图 web API)
Zero-dependency raw PHP DNS resolver, domain-ownership verification, and intoDNS/MxToolbox-style diagnostics. Queries authoritative nameservers directly over sockets — never trusts the recursive cache for ownership checks.
A lightweight plain-PHP framework for database-backed CRUD APIs.
bughq error tracking - PHP SDK
ABsurge PHP SDK for feature flags and A/B testing
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-31