How to get all the names of bus stops between two stops?

I use the Google Map Direction API to get all the details of the routes from source to destination, everything is fine, but I have one additional requirement. I get all the names of bus stops between two stops, as shown in the Google Transit Direction map. Is there any way to get this. I work in Singapore.

this is the answer: - enter image description here

I need bus stop details, as shown below, there are 18 bus stops: -

enter image description here

Output i: -

enter image description here

I want to get the whole name and location of the bus stop so that I can set an alarm for any stops using the location there.

+4
source share
2

transit_details. .

Google "name" transit_details.

https://maps.googleapis.com/maps/api/directions/json?origin=Brooklyn&destination=Queens&mode=transit&key=API_KEY
Hide result

: transit_details
JSON
( , )

+1

All Articles