Google Maps: Get a nearby Latitude and Longitude subway station?

When viewing Google maps for New York, we can see many subway stations. How can I get metro station data?

For example, I send a request containing the latitude and longitude of my location and the radius of the distance, it will return the metro station at a given distance

+4
source share
2 answers

You can use the Place Library for this. By submitting a type request. Here you can see the supported types.

 var request = { location: pyrmont, radius: '500', types: ['subway_station', 'train_station'] }; 

Although I do not know how to get which metro lines are available at the station.

+3
source

To request this data, you must use the Google Places API . Lat / Lon and radius are both parameters for this API, and you can specify a text search, for example "Subway"

+1
source

All Articles