如果我搜索
我能否让Google Places API仅返回实际街道编号的搜索结果? 编辑:我正在进行的调用是https://maps.googleapis.com/maps/api/place/autocomplete/json?input=500%20Buckingham%20Place%2C%20Eight%20Mile%20Plains&types=address。
500 Buckingham Place, Eight Mile Plains
,Google Places API会返回500 Buckingham Place, Eight Mile Plains, Queensland, Australia
并带有place id Ej41MDAgQnVja2luZ2hhbSBQbGFjZSwgRWlnaHQgTWlsZSBQbGFpbnMsIFF1ZWVuc2xhbmQsIEF1c3RyYWxpYQ
。如果我对该地点id进行详细调用,它将返回Buckingham Pl,Eight Mile Plains QLD 4113,Australia
。
您可以在Google Maps网站上复制此操作:https://www.google.com.au/maps/search/500+Buckingham+Place+Eight+Mile+Plains。返回的地点将只是Buckingham Pl,Eight Mile Plains QLD 4113,Australia
。我能否让Google Places API仅返回实际街道编号的搜索结果? 编辑:我正在进行的调用是https://maps.googleapis.com/maps/api/place/autocomplete/json?input=500%20Buckingham%20Place%2C%20Eight%20Mile%20Plains&types=address。