Developer Resources

GetStopsByLatLon

Get a list of stops nearest a given latitude/longitude.

URL

https://developer.mtd.org/api/{version}/{format}/GetStopsByLatLon

Remarks

This method defaults to the 20 nearest stops, but you can expand it to as many as you need.

Parameters

key (required) your API key
lat (required) latitude
lon (required) longitude
count (optional) number of stops to return
changeset_id (optional) see interpretting responses for more information

Response

code text message code
distance distance from the stop in feet
stop_point stop points that compose a parent stop
stop_id id of stop
stop_lat latitude of stop
stop_lon longitude of stop
stop_name name of stop

Sample