In my Android application, I need to get the address of my coordinates received from GPS. This is the best way to get it. Using android.location.Geocoder via the following code?
Geocoder geo = new Geocoder(Booking.this); try { List<Address> add = geo.getFromLocation(location.getLatitude(), location.getLongitude(), 3); Log.d("Geocode location", ""+add.get(0)); } catch (IOException e1) { e1.printStackTrace(); }
or using the Google Maps API at http://maps.googleapis.com/maps/api/geocode/json?latlng=13.9020,80.3498&sensor=true ?
It will be useful if someone directs the correct geocoding method.
source share