【发布时间】:2014-10-28 09:53:15
【问题描述】:
我已阅读有关 google 距离矩阵并输出到 json 或 xml http://maps.googleapis.com/maps/api/distancematrix/output?parameters
这是来自谷歌http://maps.googleapis.com/maps/api/distancematrix/xml?origins=Vancouver+BC|Seattle&destinations=San+Francisco|Vancouver+BC&mode=bicycling&language=fr-FR&key=的原始链接
我的数据库只有坐标,所以我在下面尝试只有坐标但我得到错误 INVALID_REQUEST
http://maps.googleapis.com/maps/api/distancematrix/xml?origins=38.078459,23.734718|38.078833,23.736843&mode=bicycling&language=el&key=
有人可以帮忙吗?
【问题讨论】:
-
“无效请求”中没有目标参数。你包括一个吗?如果我添加任意目的地坐标,我会得到响应(尽管是 ZERO_RESULTS)。
-
38.078459,23.734718是第一个点,38.078833,23.736843是第二个需要计算的点
标签: xml google-maps google-maps-api-3