Google地图地理编码 - 通配符搜索超出完全匹配

时间:2010-11-13 05:18:17

标签: google-maps maps geocoding

任何人都知道Google地图地理编码服务是否可以在找到与搜索字词完全匹配的位置时返回包含以搜索字词开头的位置的结果?

这是我的例子

在澳大利亚,如果我搜索“Bass”这个词,我得到的结果就是一个,因为澳大利亚有一个名叫Bass的城镇。但我也希望包括任何其他可以从巴斯开始的城镇 - EG“Bass Hill”和“Bassendean”。

我没有找到参考或示例 - 任何帮助都将不胜感激!

1 个答案:

答案 0 :(得分:0)

我认为没有办法做到这一点。

通过Google地理编码参考找到了这个。

How should I format my geocoder queries to maximise the number of successful requests?

The geocoder is designed to map street addresses to geographical coordinates. We therefore recommend that you format geocoder requests in accordance with the following guidelines to maximise the likelihood of a successful query:

    * Specify addresses in accordance with the format used by the national postal service of the country concerned.
    * Do not specify additional address elements such as business names, unit numbers, floor numbers, or suite numbers that are not included in the address as defined by the postal service of the country concerned.
    * Use the street number of a premise in preference to the building name where possible.
    * Use street number addressing in preference to specifying cross streets where possible.
    * Do not provide 'hints' such as nearby landmarks.

现在,如上所述(google geocoding webservice)不会假设您为其他输入提供的输入。它会尝试将您提供的输入映射到街道地址,城市,国家或类似的其他内容。