【发布时间】:2014-02-17 20:37:40
【问题描述】:
如何在 Directions API by Google 的请求参数中为 Origin/Destination 参数传递 LatLng 值。
访问此链接: Google map driving direction source code for their example?
var request = {
origin: 'Chicago', // Here I want to add a latitude and Longitude value
destination: 'New York',
travelMode: google.maps.DirectionsTravelMode.DRIVING
};
【问题讨论】:
-
使用文档中指定的google.maps.LatLng。
标签: javascript google-maps google-maps-api-3