Is it possible to find the nearest bus, train, or other public transit?
The 'nearest' is a separate case, but is it just possible to find them?
They are tagged, but I want to know how to access/find them.
Is it possible to find the nearest bus, train, or other public transit?
The 'nearest' is a separate case, but is it just possible to find them?
They are tagged, but I want to know how to access/find them.
I don't think that this is supported in Google Maps yet, finding the nearby public transport locations of a spot.
The only workaround I could think of is to use the location you want to get the nearest public transportation as a starting point of a directions calculation. As the destination, you choose any random location that's a little away but far enough so the route would require a public transportation (not just walking). Then you could fetch the first public transportation from the resulting data.
For example: if you have calculated a route like this:
you would just add the parameter &output=json to the url and could fetch the data as json format.
In this sample you would get "Bus M02" as the first public transportation.
But this is really a very bad workaround. I think gotta wait until Google opens the API for that.