0

对于某些 GPS 坐标,不返回街道名称。例如

https://api.tomtom.com/search/2/reverseGeocode/47.532289,-122.251843.json?key=MYKEY&roadUse=[%22LocalStreet%22]&returnRoadUse=true

返回

{"summary":{"queryTime":102,"numResults":1},"addresses":[{"address":{"routeNumbers":[],"countryCode":"US","countrySubdivision":"WA","countrySecondarySubdivision":"King","countryTertiarySubdivision":"Seattle East","municipality":"Mercer Island","postalCode":"98040","municipalitySubdivision":"Mercer Island","country":"United States","countryCodeISO3":"USA","freeformAddress":"Mercer Island, WA 98040","boundingBox":{"northEast":"47.535094,-122.241410","southWest":"47.534766,-122.242287","entity":"position"},"countrySubdivisionName":"Washington"},"position":"47.534897,-122.242287","roadUse":["Publicly Accessible","LocalStreet","Terminal"]}]}

其中不包含街道名称。有没有办法告诉 TomTom API 返回总是包含街道名称的结果?

4

2 回答 2

1

这可能是个小技巧,但如果我们创建一条从该位置(华盛顿湖中部)开始的步行路线,第一个指令通常从最近的可通航街道开始,不是吗?

于 2019-04-15T12:58:48.673 回答
0

这些坐标指向一个湖。最近的道路是一条没有名字的生活街道。所以这不是一个完美的例子。

于 2019-03-21T10:04:11.987 回答