代码之家  ›  专栏  ›  技术社区  ›  Karue Benson Karue

Android按名称搜索位置,返回带坐标的相关位置[关闭]

  •  -1
  • Karue Benson Karue  · 技术社区  · 9 年前

    2 回复  |  直到 9 年前
        1
  •  1
  •   makovkastar    9 年前

    Google Geocoding API .请求获取英国地址的示例:

    https://maps.googleapis.com/maps/api/geocode/json?address=high+st+hasting&components=country:GB&key=YOUR_API_KEY .

    "bounds" : {
      "northeast": {
        "lat": 50.8601041,
        "lng": 0.5957329
      },
      "southwest": {
        "lat": 50.8559061,
        "lng": 0.5906163
      }
    }
    
        2
  •  0
  •   Anton Potapov    9 年前

    Geocoder 类从位置或位置名称获取位置。 Here

    推荐文章