2

我正在做一个非常基本的谷歌反向地理编码调用,例如:

http://maps.googleapis.com/maps/api/geocode/json?latlng=37.785546,-122.406551&sensor=true

......最近(我觉得最近开始发生这种情况)我没有找回街道地址。例如,我总是用来得到这样的东西:

{
    "results": [
        {
            "address_components": ... ,
            "formatted_address": "1 Stockton St, San Francisco, CA 94102, USA",
            "geometry": ...,
            "types": [
                "street_address"
            ]
        },
...

现在我经常得不到 street_address,而是得到这样的东西作为最准确的反向地理编码结果:

{
    "results": [
        {
            "address_components": ...,
            "formatted_address": "4th St & Market St, San Francisco, CA 94103, USA",
            "geometry": ...,
            "types": [
                "transit_station"
            ]
        },

我总是想要最近的街道地址。有谁知道强制 google maps api 总是返回一个的方法?

4

1 回答 1

4

Talked to Google about this. There isn't a way to specify that you want an actual street address.

于 2012-09-13T16:13:37.687 回答