user2347088
user2347088

Reputation: 1

Finding location name using GPS Location

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.

Upvotes: 0

Views: 875

Answers (3)

Knaģis
Knaģis

Reputation: 21485

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.

Upvotes: 0

akhalsa
akhalsa

Reputation: 2313

Take a look at this thread:

Android: Reverse geocoding - getFromLocation

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

Upvotes: 0

fweigl
fweigl

Reputation: 22028

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

Upvotes: 1

Related Questions