似乎Google地图不再返回十字路口了。当我输入第147和百老汇时,我只看到“百老汇”作为回报。这看起来像今天早上的突然变化。是否有其他人遇到这种情况或知道任何可以解决问题的解决方案?
{
"results" : [
{
"address_components" : [
{
"long_name" : "Broadway",
"short_name" : "Broadway",
"types" : [ "route" ]
},
{
"long_name" : "New York",
"short_name" : "New York",
"types" : [ "locality", "political" ]
},
{
"long_name" : "New York",
"short_name" : "NY",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "United States",
"short_name" : "US",
"types" : [ "country", "political" ]
}
],
"formatted_address" : "Broadway, New York, NY, USA",
"geometry" : {
"location" : {
"lat" : 40.8264107,
"lng" : -73.95035679999999
},
"location_type" : "GEOMETRIC_CENTER",
"viewport" : {
"northeast" : {
"lat" : 40.8277596802915,
"lng" : -73.94900781970848
},
"southwest" : {
"lat" : 40.8250617197085,
"lng" : -73.9517057802915
}
}
},
"partial_match" : true,
"place_id" : "EhtCcm9hZHdheSwgTmV3IFlvcmssIE5ZLCBVU0E",
"types" : [ "intersection" ]
}
],
"status" : "OK"
}
谢谢。
答案 0 :(得分:1)
我知道这个问题已经一岁了,但是万一其他人正在寻找答案(像我一样)...
您可以通过在查询字符串的address参数中提供以下一项或两项来增加Google返回交集的可能性:
address = Main +%26 + Stewart
提供:
address = Main + St +%26 + Stewart + Ave
address = main +%26 + stewart, + huntington
作为旁注,尽管在查询中提供边界是有帮助的,但不能保证结果将限于该区域。每个Google:
https://developers.google.com/maps/documentation/geocoding/intro#Viewports
“请注意,偏向只偏向界限内的结果;如果在界限之外存在更相关的结果,则可以将其包括在内。”
希望这对您有帮助...