0

I am working with android sdk, i have to find location name near by given gps location.

I was using

String URL= http://maps.google.com/maps/geo?q=" + cv.getLatitude() + ","
                        + cv.getLongitude() + "&output=csv"

It was giving me collection of location name. But now google has dropped this service and I am not getting location names.

Kindly suggest me alternate way.

Nunser
  • 4,512
  • 8
  • 25
  • 37

3 Answers3

1

I think you'll like this class, it does LatLon -> location name and vice versa.

fweigl
  • 21,278
  • 20
  • 114
  • 205
0

Take a look at this thread:

Android: Reverse geocoding - getFromLocation

You can use the native mapping APIs to do it pretty easily.

Community
  • 1
  • 1
akhalsa
  • 2,303
  • 3
  • 25
  • 43
0

You can use http://www.geonames.org.

Here is the documentation of their webservice: http://www.geonames.org/export/web-services.html

Unless you have a high load, this service should suffice and it is free of charge.

Knaģis
  • 20,827
  • 7
  • 66
  • 80