David Bukera
David Bukera

Reputation: 1343

Get Lat and long from postcode without using the map android

I have an app that calculate the distances between my current location to the specific location. I am able to do this by entering the lat and long manually. is the a way to get lat and long from the postcode provided by the user without using the map because I don't need to see the map in this instance:

The postcode is collected from an Input Text box from the user.

Upvotes: 1

Views: 972

Answers (2)

super-qua
super-qua

Reputation: 3188

You can use the Geocoder getFromLocationName(String locationName, int maxResults)to transform address information to Latitude, Longitude. Documentation can be found here.

Upvotes: 1

Yashdeep Patel
Yashdeep Patel

Reputation: 3140

You can user any free service available for reverse Geo Coding:

http://blog.programmableweb.com/2012/06/21/7-free-geocoding-apis-google-bing-yahoo-and-mapquest/

Upvotes: 0

Related Questions