Take the 2-minute tour ×

In my android application I want to search 5 nearest places from my current location in a map.This parameters are used to set the boundaries lowerLeftLatitude, lowerLeftLongitude, upperRightLatitude, upperRightLongitude. But I don't know to set their values.

This codes gives 5 plces:

            try {
                List<Address> addressList =geocoder.getFromLocationName(staddress, 5);//, lowerLeftLatitude, lowerLeftLongitude, upperRightLatitude, upperRightLongitude;

            } catch (IOException e1) {
                // TODO Auto-generated catch block

How can I set these values for nearest places from my location or is any other way to to get the nearest places?

share|improve this question
Your current code is giving you the 5 nearest addresses without specifying the bounding coordinates. So what else do you need? –  Sameer Oct 25 '12 at 9:57
yes what else do u need if you are getting 5 nearest address? be more specific about it –  Aamirkhan Oct 25 '12 at 10:16
I want to get the places with in a specific radius.. –  TamiL Oct 25 '12 at 10:43
add comment

1 Answer

You can use Google api for that to get nearst locations based on the latitude and longitude. Example

This google api will return neasrt locations based on your query/ parameters you passed.

Study here. This study will be useful for you

share|improve this answer
Google api is still in experimental stage, i want something more reliable –  TamiL Oct 25 '12 at 10:52
add comment

Your Answer


