Bus Stop Information

I'm trying to get bus stop information from the Google Places API. I was able to get the actual bus stops, but now I would like to get the details.

For example: this is the google url that gives me the answer. https://maps.google.com/maps/place?cid=14960400563022267569

I would like to get a JSON representation of this information (if available). Adding output = json just returns an empty json document.

Does anyone know how to capture information without passing it through the parser?

EDIT: So, while continuing to delve into the stream, I got SOME information from this URL, but didn't seem to show me the bus numbers or anything else. http://maps.google.com/maps?cid=14960400563022267569&q=a&output=json

+4
source share
1 answer

There is currently no option on google apis to get public transport information as you see on Google maps. It is best to use google places api and filter for bus_station to get detailed information about bus stations, but the information that the information will return will be limited to these details of the result . Another option is to use google api pointers , where you can search for routes while keeping your bus station as a source and a suitable destination, and the returned results will provide some transit information , including departure times, passes, etc.

+5
source

Source: https://habr.com/ru/post/1490158/


All Articles