我面臨與谷歌地理編碼API服務奇怪的問題。我要求 「48 spottiswoode住宅,spottiwood公園,新加坡088660」地址API分別返回拉= 1.345871和lng = 103.75089739999999。 但是,谷歌地圖顯示lat = 1.2752757和lng = 103.8346363爲相同的地址。谷歌地圖和谷歌地理編碼服務返回不同的緯度和經度爲相同的地址
請求URL:
響應:
{ "results" : [
{
"address_components" : [
{
"long_name" : "Singapore",
"short_name" : "Singapore",
"types" : [ "route" ]
},
{
"long_name" : "Bukit Batok",
"short_name" : "Bukit Batok",
"types" : [ "neighborhood", "political" ]
},
{
"long_name" : "Singapore",
"short_name" : "Singapore",
"types" : [ "locality", "political" ]
},
{
"long_name" : "Singapore",
"short_name" : "SG",
"types" : [ "country", "political" ]
}
],
"formatted_address" : "Singapore, Singapore",
"geometry" : {
"location" : {
"lat" : 1.345871,
"lng" : 103.7508974
},
"location_type" : "GEOMETRIC_CENTER",
"viewport" : {
"northeast" : {
"lat" : 1.347219980291502,
"lng" : 103.7522463802915
},
"southwest" : {
"lat" : 1.344522019708498,
"lng" : 103.7495484197085
}
}
},
"partial_match" : true,
"place_id" : "ChIJOfDA4T8Q2jERL48IW_56xww",
"types" : [ "route" ]
}
],
"status" : "OK"
}
在此先感謝。
地址就可以了。去谷歌上查詢。 –
當我[google it](https://maps.google.de/maps?q=48+spottiswoode+residences,+spottiwood+park,+Singapore+088660&oe=utf-8&gws_rd=cr&um=1&ie=UTF-8&sa= X&ved = 0ahUKEwjGlLvt0u7JAhWCYA8KHfG1BGYQ_AUIBygB)返回的地址是** 48 Spottiswoode Park Road,Singapur 088660 **,不是** 48 spottiswoode住宅,spottiwood park,新加坡088660 ** –