How to get complete address from latitude and longitude?

前端 未结 21 2496
深忆病人
深忆病人 2020-11-22 09:07

I want to get following values from Latitude and Longitude in android

  1. Street Address
  2. City / State
  3. Zip
  4. Complete Address
<
21条回答
  •  青春惊慌失措
    2020-11-22 09:49

    There is a last trick to get Address from Lat-Long (Geo-coordinates). You can simply hit google-maps web service passing the Latitude and longitude. It is simply a GET-Method web-service.

    It will return the JSON Response that can be parsed easily to get address. The URL for this is:

    http://maps.googleapis.com/maps/api/geocode/json?latlng=32,75&sensor=true
    

    You can replace 32,75 with lat,long.

提交回复
热议问题