对于某些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返回始终包含街道名称的结果?
答案 0 :(得分:1)
这可能是一个hack,但是如果我们从该位置(在华盛顿湖中部)开始创建一条步行路线,则第一条指令通常会在可以通航的最近街道上开始,不是吗?
答案 1 :(得分:0)
这些坐标指向一个湖泊。最近的道路是一条没有名字的生活街道。因此,这不是一个完美的例子。