0
我打電話給谷歌的地方跟下面的請求地圖API(與我的谷歌API密鑰):谷歌地理位置地址搜索返回相同的搜索精確與partial_match結果=真
它返回以下JSON:
{
"results" : [
{
"address_components" : [
{
"long_name" : "32",
"short_name" : "32",
"types" : [ "subpremise" ]
},
{
"long_name" : "36",
"short_name" : "36",
"types" : [ "street_number" ]
},
{
"long_name" : "Nagle Street",
"short_name" : "Nagle St",
"types" : [ "route" ]
},
{
"long_name" : "Liverpool",
"short_name" : "Liverpool",
"types" : [ "locality", "political" ]
},
{
"long_name" : "Liverpool City Council",
"short_name" : "Liverpool",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "New South Wales",
"short_name" : "NSW",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "Australia",
"short_name" : "AU",
"types" : [ "country", "political" ]
},
{
"long_name" : "2170",
"short_name" : "2170",
"types" : [ "postal_code" ]
}
],
"formatted_address" : "32/36 Nagle St, Liverpool NSW 2170, Australia",
"geometry" : {
"location" : {
"lat" : -33.92853530000001,
"lng" : 150.9219302
},
"location_type" : "ROOFTOP",
"viewport" : {
"northeast" : {
"lat" : -33.92718631970851,
"lng" : 150.9232791802915
},
"southwest" : {
"lat" : -33.92988428029151,
"lng" : 150.9205812197085
}
}
},
"partial_match" : true,
"place_id" : "Ei0zMi8zNiBOYWdsZSBTdCwgTGl2ZXJwb29sIE5TVyAyMTcwLCBBdXN0cmFsaWE",
"types" : [ "subpremise" ]
}
],
"status" : "OK"
}
爲什麼結果有partial_match = TRUE這裏的時候,傳遞一樣產生的「部分匹配」地址的地址?
"partial_match" : true