【发布时间】:2018-08-19 13:04:33
【问题描述】:
我正在尝试使用 R 中依赖于 Google Geocoding API 的 mapdist 函数。有许多 ZIP 对,mapdist 函数会产生 NA 值。例如:
mapdist('19111', '19187')
by using this function you are agreeing to the terms at :
http://code.google.com/apis/maps/documentation/distancematrix/
Information from URL : http://maps.googleapis.com/maps/api/distancematrix/json?origins=19111&destinations=19187&mode=driving&sensor=false
from to km miles minutes hours
1 19111 19187 NA NA NA NA
但是当我进入谷歌地图网站时,它很容易找到大约 13 英里的正确答案。有谁知道为什么会这样?对于许多其他 ZIP 对,该功能可以完美运行。谢谢。
【问题讨论】:
-
所以...这可能是
googleapis的问题?它提供的 URL 找不到'19111'。