使用api查找已知地点的纬度和经度?

时间:2013-02-11 18:31:50

标签: java google-maps location

有没有办法可以找到已知地点的纬度和经度,例如新加坡,吉隆坡/纽约等知名城市。

2 个答案:

答案 0 :(得分:3)

天气预报

退房:Google Geocoding API

答案 1 :(得分:1)

询问谷歌 e.g。

此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 ]
    }
  } ]
}