【发布时间】:2016-06-08 12:20:24
【问题描述】:
我正在使用网络服务修改 Google Maps API,并注意到,与 Google Maps 相比,我从 Google Maps Distance Matrix API 获得的输出不同。
这是我的查询返回的内容:
{
"destination_addresses" : [ "Cherbourg, France" ],
"origin_addresses" : [ "Batilly, France" ],
"rows" : [
{
"elements" : [
{
"distance" : {
"text" : "195 km",
"value" : 194751
},
"duration" : {
"text" : "2 hours 3 mins",
"value" : 7373
},
"status" : "OK"
}
]
}
],
"status" : "OK"
}
所以我得到了 195 公里,而不是 708 公里。问题在于巴蒂利市。瑟堡坐标很好。
Real Coordingates of Batilly are 49.171029, 5.969359(Google Maps output)
Google Maps Geocoding returns 48.7486861, -0.14727
我应该如何配置我的 Google Maps Distance Matrix API 以使其返回与 Google 地图相同的输出?
【问题讨论】:
标签: google-maps google-maps-api-3 geocoding google-geocoder