gnuanu
gnuanu

Reputation: 2260

Getting nearest bus stations from Google Map inside Android Application

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.

Upvotes: 1

Views: 8005

Answers (2)

gnuanu
gnuanu

Reputation: 2260

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

Thanks for your help.

Upvotes: 1

Eduard
Eduard

Reputation: 3671

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

Upvotes: 0

Related Questions