1

I am working on an Android application in which I need to achieve the following goals.

  1. Get the current position(co-ordinates) of the device - Done
  2. Search within a given radius centering the device position for the nearest bus stations and List them.

I need help on the second thing. Is there any way to get the Nearest bus stations from the Google Map inside an android application? Can I use Google Places API to achieve this?(the official page says that it's still experimental). If yes, how?

Thanks.

gnuanu
  • 2,252
  • 3
  • 29
  • 42
  • http://stackoverflow.com/questions/12214525/distance-between-two-location-in-android-map/12214695#12214695 – NaserShaikh Sep 13 '12 at 09:23
  • Thanks for that, But actually I am not planning to use Maps, just get the place tags using GPlaces API. – gnuanu Sep 18 '12 at 16:30

2 Answers2

1

I could successfully achieve these by referring Davy's Tech Blog Article and the code sample provided in Github

Thanks for your help.

gnuanu
  • 2,252
  • 3
  • 29
  • 42
0

Do a reverse geocoding on your coordinates:

https://developers.google.com/maps/documentation/geocoding/#ReverseGeocoding

then do a search like this:

https://maps.google.com/maps?q=transit stop near the_address_obtain_with_reverse_geocoding&output=json

Eduard
  • 3,536
  • 1
  • 20
  • 27
  • I could find the exact solution from somewhere else, this was somehow close to that solution, thanks. – gnuanu Sep 18 '12 at 16:32
  • Could you post your answer here? I am still having trouble on getting the bus stations – MelloG Apr 19 '15 at 20:28