【发布时间】:2014-02-01 20:29:51
【问题描述】:
我从 Google Directions API 获得了 JSON 数据。如何使用 Google Maps API 在地图上显示这条路线?
【问题讨论】:
标签: google-maps
我从 Google Directions API 获得了 JSON 数据。如何使用 Google Maps API 在地图上显示这条路线?
【问题讨论】:
标签: google-maps
使用Google Maps Javascript API v3 DirectionsService 和DirectionsRenderer,您可以避免从 Google Directions API 获取 JSON 数据(Google Maps Javascript API v3 DirectionsService 返回一个 JSON 结果,DirectionRenderer 可以直接显示)。
【讨论】:
【讨论】: