【发布时间】:2017-06-01 07:55:06
【问题描述】:
我尝试使用 google geocoder 的组件过滤功能(请参阅此处 https://developers.google.com/maps/documentation/geocoding/intro#ComponentFiltering)并遇到了问题。
以下查询返回结果:https://maps.googleapis.com/maps/api/geocode/json?components=country:DE|postal_code:11011
但是这个查询返回零结果:https://maps.googleapis.com/maps/api/geocode/json?components=country:DE|postal_code:11011&language=de
唯一的区别是末尾的language=de 参数。我在谷歌上找不到任何内容,上面写着“过滤组件时排除语言参数”或其他任何内容。
还有其他人有这种行为吗?什么是解决方法?我不能省略整个语言参数,因为它返回的结果完全不同,因为我们在德国的地址格式与在美国的格式不同(例如,在美国(街道号码的位置等))
【问题讨论】:
标签: google-maps geocoding google-geocoder google-geocoding-api geocode