Google反向地理编码 - 如何捕捉到最近的完整邮编 [英] Google reverse geocoding - how to snap to nearest full postcode
问题描述
我正在使用Google的反向地理编码功能与地图api v3检索纬度经度的邮政地址(当在地图上拖动标记时)。
这仅适用于英国的应用程序,系统的一部分需要完整或接近完整的邮政编码才能正确处理。然而,反向地理编码器通常只返回邮编的一部分 - 例如GU3,即使返回的实际地址似乎已完成 - 例如包括街道和门牌号码。
反正有,最好是谷歌,但如果没有的话,将地址贴到最近的完整邮编?
我知道类似的功能存在用于捕捉到最近的全景视图,但似乎没有相应的邮政编码。
英国邮政编码数据库可供下载从军械调查开放数据
www.ordnancesurvey.co.uk/opendata
另外,您可以使用像 uk-postcode.com 将最近的邮政编码返回到一个地点
I am using Google's reverse geocoding functionality with the maps api v3 to retrieve postal addresses for latitude longitude (when dragging a marker around a map).
This is a UK application only, and part of the system requires a full, or near full, postcode to process correctly. However the reverse geocoder regularly returns just the part of the postcode - for example "GU3", even when the actual address returned appears to be complete - for example including street and house number.
Is there anyway, preferably google but otherwise if not, of 'snapping' the address to the nearest full postcode?
I'm aware similar functionality exists for snapping to the nearest panorama view, but there appears to be no equivalent for postcode.
The UK post code database is available for download from the Ordnance Survey open data www.ordnancesurvey.co.uk/opendata
Alternatively you can use a service like uk-postcode.com to return the closest post codes to a location
这篇关于Google反向地理编码 - 如何捕捉到最近的完整邮编的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!