gpt4 book ai didi

google-maps - 谷歌 API : Find the complete address using civic number & postal code

转载 作者:行者123 更新时间:2023-12-04 14:11:57 29 4
gpt4 key购买 nike

在加拿大的许多政府网站上,他们有一个功能,他们只能通过邮政编码和街道名称知道您的地址。

当你在谷歌地图上搜索邮政编码时,这个邮政编码所覆盖的区域就被覆盖了。

但是查看 google map API,我无法找到仅根据邮政编码和公民号码获取完整地址的方法。

最佳答案

恐怕 Google Geocoding API 中没有这样的功能。

如果您在加拿大或英国搜索(完全精确的)邮政编码,您可以通过结果中 Bounds 字段的小尺寸判断结果非常精确到一栋建筑物(也许是几栋)。例子(红框为Bounds):

M6G 1C5(加拿大) http://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder-tool.html#q%3DM6G%201C5

SW1V 4EB(英国) http://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder-tool.html#q%3DSW1V%204EB

您返回的结果是邮政编码,API 不会将其“翻译”为街道地址(例如 750 College St, Toronto, ON M6G 1C5)。如果您认为这在整个国家和其他国家(例如英国,不确定其他国家)会很好用,那么请考虑提交 Geocoding API 的功能请求(并在此处发布问题编号 :)

http://code.google.com/p/gmaps-api-issues/issues/entry?template=Geocoding%20API%20-%20Feature%20Request

HTH

关于google-maps - 谷歌 API : Find the complete address using civic number & postal code,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8946419/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com