
GraphHopper Directions API
GraphHopper Directions API
GraphHopper Directions API 提供 route、matrix、isochrone、geocode、map matching 和 VRP 能力。
同一 API 同时覆盖 route、matrix、vrp、match
功能很多,接入前要先划清你用的是哪一块
先确认 api_key 能访问 /route 或 /geocode,再逐步测试 /matrix、/isochrone、/match 或 /vrp。若你需要异步作业流,注意 calculate 与 solution 这类成对路径。
可用率 · 30 天窗口
关于这个 API
这套 API 不只是单一路线规划接口,而是把 Routing、Matrix、Isochrone、Map Matching、Cluster 和 VRP 一起放进同一个导航计算面。 spec 里能看到 "/cluster", "/cluster/calculate", "/cluster/solution/{jobId}", and "/geocode" 这些路径,以及 "Route Optimization API", "Routing API", and "Matrix API" 这类功能分组。
这些具体资源足以支撑计算 turn-by-turn 路线、批量生成 matrix 或 VRP 解,以及把 GPS 轨迹做 map matching 或 isochrone 分析。OpenAPI 文档点名了 "api_key" 这些安全方案名。
功能很多,接入前要先划清你用的是哪一块 某些作业型接口需要轮询 solution
你可以做什么
- 1计算 turn-by-turn 路线
- 2批量生成 matrix 或 VRP 解
- 3把 GPS 轨迹做 map matching 或 isochrone 分析
优劣对比
优点
- 同一 API 同时覆盖 route、matrix、vrp、match
- api_key 鉴权简单直接
- 路径里有异步 calculate / solution 作业流
注意事项
- 功能很多,接入前要先划清你用的是哪一块
- 某些作业型接口需要轮询 solution
示例请求
curl https://www.graphhopper.com/<endpoint> \
-H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.快速开始
先确认 api_key 能访问 /route 或 /geocode,再逐步测试 /matrix、/isochrone、/match 或 /vrp。若你需要异步作业流,注意 calculate 与 solution 这类成对路径。
技术细节
- 认证方式
- api_key
- 计费
- unknown
- 协议
- REST
- 响应时间
- 1024 ms
- 上次巡检
- 2026/5/12 07:37:38