【问题标题】:Finding latitude and longitude of a known place using api? [duplicate]使用api查找已知地点的纬度和经度? [复制]
【发布时间】:2013-02-11 18:31:50
【问题描述】:

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

【问题讨论】:

标签: java google-maps location


【解决方案1】:

地理编码

查看:Google Geocoding API

【讨论】:

    【解决方案2】:

    询问谷歌。
    例如

    这个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 ]
        }
      } ]
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-09-03
      • 2018-07-26
      • 1970-01-01
      • 2018-07-27
      • 1970-01-01
      • 2016-05-08
      • 2021-01-17
      • 1970-01-01
      相关资源
      最近更新 更多