【发布时间】:2013-02-11 18:31:50
【问题描述】:
有没有办法可以找到已知地点的纬度和经度,例如新加坡、吉隆坡/纽约等知名城市。
【问题讨论】:
-
他们现在下线了,但我喜欢getlatlon.com
标签: java google-maps location
有没有办法可以找到已知地点的纬度和经度,例如新加坡、吉隆坡/纽约等知名城市。
【问题讨论】:
标签: java google-maps location
地理编码
【讨论】:
询问谷歌。
例如
这个http请求:
http://maps.google.com/maps/geo?q=Singapore
返回:
{
"name": "Singapore",
"Status": {
"code": 200,
"request": "geocode"
},
"Placemark": [ {
"id": "p1",
"address": "Singapur",
"AddressDetails": {
"Accuracy" : 1,
"Country" : {
"CountryName" : "Singapur",
"CountryNameCode" : "SG"
}
},
"ExtendedData": {
"LatLonBox": {
"north": 1.4708809,
"south": 1.1663980,
"east": 104.0856805,
"west": 103.6056246
}
},
"Point": {
"coordinates": [ 103.8198360, 1.3520830, 0 ]
}
} ]
}
【讨论】: