stops-for-location Method
Search for stops near a specific location, optionally by stop code.
Example Request
Example Response
{"code":200,"currentTime":1710978257213,"data":{"limitExceeded":false,"list":[{"code":"10914","direction":"S","id":"1_10914","lat":47.656422,"locationType":0,"lon":-122.312164,"name":"15th Ave NE & NE Campus Pkwy","parent":"","routeIds":["1_102730","1_100223","1_100224","1_100228","1_100447","1_100264","1_100162","1_100214","40_100511","40_100451","40_586"],"staticRouteIds":["1_102730","1_100223","1_100224","1_100228","1_100447","1_100264","1_100162","1_100214","40_100511","40_100451","40_586"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"10917","direction":"S","id":"1_10917","lat":47.65482,"locationType":0,"lon":-122.31221,"name":"15th Ave NE & NE 40th St","parent":"","routeIds":["1_102730","1_100223","1_100224","1_100228","1_100254","1_102732","1_100146","1_100162","40_100511","40_100451","40_586"],"staticRouteIds":["1_102730","1_100223","1_100224","1_100228","1_100254","1_102732","1_100146","1_100162","40_100511","40_100451","40_586"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"25240","direction":"SW","id":"1_25240","lat":47.650227,"locationType":0,"lon":-122.30442,"name":"Montlake Blvd NE & NE Pacific Pl - Bay 3","parent":"","routeIds":["1_100224","1_100267","1_100146","1_100346"],"staticRouteIds":["1_100224","1_100267","1_100146","1_100346"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"25755","direction":"NE","id":"1_25755","lat":47.650494,"locationType":0,"lon":-122.304092,"name":"Montlake Blvd NE & NE Pacific Pl - Bay 4","parent":"","routeIds":["1_100146","40_100511","40_100451","1_100341","1_100346"],"staticRouteIds":["1_100146","40_100511","40_100451","1_100341","1_100346"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"25765","direction":"NE","id":"1_25765","lat":47.651543,"locationType":0,"lon":-122.30349,"name":"Montlake Blvd NE & NE Pacific Pl - Bay 5","parent":"","routeIds":["1_100254"],"staticRouteIds":["1_100254"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"29240","direction":"SE","id":"1_29240","lat":47.652084,"locationType":0,"lon":-122.310883,"name":"NE Pacific St & 15th Ave NE","parent":"","routeIds":["1_100223","1_100224","1_100228","1_100254","1_100267","1_100146","1_100162","40_100511","40_100451","40_586"],"staticRouteIds":["1_100223","1_100224","1_100228","1_100254","1_100267","1_100146","1_100162","40_100511","40_100451","40_586"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"29242","direction":"E","id":"1_29242","lat":47.650505,"locationType":0,"lon":-122.306908,"name":"NE Pacific Pl & NE Pacific St","parent":"","routeIds":["1_100224","1_100254","1_100267"],"staticRouteIds":["1_100224","1_100254","1_100267"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"29243","direction":"E","id":"1_29243","lat":47.65049,"locationType":0,"lon":-122.306198,"name":"NE Pacific Pl & NE Pacific St","parent":"","routeIds":["1_100224"],"staticRouteIds":["1_100224"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"29247","direction":"SE","id":"1_29247","lat":47.649143,"locationType":0,"lon":-122.30497,"name":"NE Pacific St & Montlake Blvd NE - Bay 1","parent":"","routeIds":["1_100223","1_100228","1_100162","40_100511","40_100451","40_586"],"staticRouteIds":["1_100223","1_100228","1_100162","40_100511","40_100451","40_586"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"29405","direction":"NW","id":"1_29405","lat":47.649765,"locationType":0,"lon":-122.305893,"name":"NE Pacific St & Montlake Blvd NE - Bay 2","parent":"","routeIds":["1_100223","1_100224","1_100228","1_100267","1_100162"],"staticRouteIds":["1_100223","1_100224","1_100228","1_100267","1_100162"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"29420","direction":"NW","id":"1_29420","lat":47.652206,"locationType":0,"lon":-122.310783,"name":"NE Pacific St & 15th Ave NE","parent":"","routeIds":["1_100224","1_100228","1_100267","1_100146","1_100162","40_100511","40_100451"],"staticRouteIds":["1_100224","1_100228","1_100267","1_100146","1_100162","40_100511","40_100451"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"29440","direction":"N","id":"1_29440","lat":47.655899,"locationType":0,"lon":-122.311974,"name":"15th Ave NE & NE Campus Pkwy","parent":"","routeIds":["1_100224","1_100228","1_100162","1_100214","40_100511","40_100451"],"staticRouteIds":["1_100224","1_100228","1_100162","1_100214","40_100511","40_100451"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"75402","direction":"SW","id":"1_75402","lat":47.652389,"locationType":0,"lon":-122.306305,"name":"Stevens Way & Rainier Vista NE","parent":"","routeIds":["1_100225","1_100259","1_100214"],"staticRouteIds":["1_100225","1_100259","1_100214"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"75403","direction":"SW","id":"1_75403","lat":47.654503,"locationType":0,"lon":-122.30513,"name":"East Stevens Way NE & Benton Ln","parent":"","routeIds":["1_100225","1_100259","1_100214"],"staticRouteIds":["1_100225","1_100259","1_100214"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"75404","direction":"W","id":"1_75404","lat":47.652172,"locationType":0,"lon":-122.308624,"name":"W Stevens Way & Okanaogan Ln","parent":"","routeIds":["1_100225","1_100259","1_100214"],"staticRouteIds":["1_100225","1_100259","1_100214"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"75405","direction":"W","id":"1_75405","lat":47.65514,"locationType":0,"lon":-122.310974,"name":"West Stevens Way NE Way NE & George Washington Ln","parent":"","routeIds":["1_100225","1_100259","1_100214"],"staticRouteIds":["1_100225","1_100259","1_100214"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"75406","direction":"SE","id":"1_75406","lat":47.656742,"locationType":0,"lon":-122.304886,"name":"East Stevens Way NE & Pend Oreille Rd","parent":"","routeIds":["1_100225","1_100259","1_100214"],"staticRouteIds":["1_100225","1_100259","1_100214"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"75410","direction":"E","id":"1_75410","lat":47.657307,"locationType":0,"lon":-122.304527,"name":"Stevens Way & Pend Oreille Rd","parent":"","routeIds":["1_100269","1_100214"],"staticRouteIds":["1_100269","1_100214"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"75414","direction":"N","id":"1_75414","lat":47.653908,"locationType":0,"lon":-122.305023,"name":"Stevens Way & Benton Ln","parent":"","routeIds":["1_100269","1_100214"],"staticRouteIds":["1_100269","1_100214"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"75415","direction":"NE","id":"1_75415","lat":47.652329,"locationType":0,"lon":-122.306099,"name":"Stevens Way & Rainier Vista NE","parent":"","routeIds":["1_100269","1_100214"],"staticRouteIds":["1_100269","1_100214"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"75417","direction":"E","id":"1_75417","lat":47.651985,"locationType":0,"lon":-122.308258,"name":"Stevens Way & Okanogan Ln","parent":"","routeIds":["1_100269","1_100214"],"staticRouteIds":["1_100269","1_100214"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"75418","direction":"S","id":"1_75418","lat":47.654377,"locationType":0,"lon":-122.310486,"name":"Stevens Way & Asotin Pl","parent":"","routeIds":["1_100269","1_100214"],"staticRouteIds":["1_100269","1_100214"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"99604","direction":"","id":"40_99604","lat":47.649349,"locationType":0,"lon":-122.303795,"name":"Univ of Washington","parent":"40_N05","routeIds":["40_100479"],"staticRouteIds":["40_100479"],"wheelchairBoarding":"ACCESSIBLE"},{"code":"99605","direction":"","id":"40_99605","lat":47.650312,"locationType":0,"lon":-122.303736,"name":"Univ of Washington","parent":"40_N05","routeIds":["40_100479"],"staticRouteIds":["40_100479"],"wheelchairBoarding":"ACCESSIBLE"}],"outOfRange":false,"references":{"agencies":[{"disclaimer":"","email":"","fareUrl":"https://kingcounty.gov/en/dept/metro/fares-and-payment/prices","id":"1","lang":"EN","name":"Metro Transit","phone":"206-553-3000","privateService":false,"timezone":"America/Los_Angeles","url":"https://kingcounty.gov/en/dept/metro"},{"disclaimer":"","email":"main@soundtransit.org","fareUrl":"https://www.soundtransit.org/ride-with-us/how-to-pay/fares","id":"40","lang":"en","name":"Sound Transit","phone":"1-888-889-6368","privateService":false,"timezone":"America/Los_Angeles","url":"https://www.soundtransit.org"}],"routes":[{"agencyId":"1","color":"","description":"Lake City - Northgate - University District","id":"1_102730","longName":"","nullSafeShortName":"20","shortName":"20","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/020.html"},{"agencyId":"1","color":"","description":"Univ Dist-Montlake-Capitol Hill-Downtown Seattle","id":"1_100223","longName":"","nullSafeShortName":"43","shortName":"43","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/043.html"},{"agencyId":"1","color":"","description":"Ballard - Montlake","id":"1_100224","longName":"","nullSafeShortName":"44","shortName":"44","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/044.html"},{"agencyId":"1","color":"","description":"Mt Baker - University District","id":"1_100228","longName":"","nullSafeShortName":"48","shortName":"48","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/048.html"},{"agencyId":"1","color":"","description":"Univ District - Broadway - Downtown Seattle","id":"1_100447","longName":"","nullSafeShortName":"49","shortName":"49","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/049.html"},{"agencyId":"1","color":"","description":"University District - Eastlake - Downtown Seattle","id":"1_100264","longName":"","nullSafeShortName":"70","shortName":"70","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/070.html"},{"agencyId":"1","color":"","description":"Issaquah - University District","id":"1_100162","longName":"","nullSafeShortName":"271","shortName":"271","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/271.html"},{"agencyId":"1","color":"","description":"UW/Cascadia College - University District","id":"1_100214","longName":"","nullSafeShortName":"372","shortName":"372","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/372.html"},{"agencyId":"40","color":"2B376E","description":"Redmond - University District","id":"40_100511","longName":"Redmond - University District","nullSafeShortName":"542","shortName":"542","textColor":"FFFFFF","type":3,"url":"https://www.soundtransit.org/542"},{"agencyId":"40","color":"2B376E","description":"Issaquah-University District","id":"40_100451","longName":"Issaquah - Northgate","nullSafeShortName":"556","shortName":"556","textColor":"FFFFFF","type":3,"url":"https://www.soundtransit.org/556"},{"agencyId":"40","color":"2b376e","description":"","id":"40_586","longName":"Tacoma - U. District","nullSafeShortName":"586","shortName":"586","textColor":"ffffff","type":3,"url":"https://www.soundtransit.org/586"},{"agencyId":"1","color":"","description":"Lake City - University District","id":"1_100254","longName":"","nullSafeShortName":"65","shortName":"65","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/065.html"},{"agencyId":"1","color":"","description":"Greenlake - University District","id":"1_102732","longName":"","nullSafeShortName":"79","shortName":"79","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/079.html"},{"agencyId":"1","color":"","description":"Totem Lake TC-Kirkand TC-UW Link Sta-Univ Dist","id":"1_100146","longName":"","nullSafeShortName":"255","shortName":"255","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/255.html"},{"agencyId":"1","color":"","description":"Jackson Park - Univ District","id":"1_100267","longName":"","nullSafeShortName":"73","shortName":"73","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/073.html"},{"agencyId":"1","color":"","description":"Madrona - Lakeside School","id":"1_100346","longName":"","nullSafeShortName":"988","shortName":"988","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/988.html"},{"agencyId":"1","color":"","description":"Bear Creek P&R - Lakeside School","id":"1_100341","longName":"","nullSafeShortName":"982","shortName":"982","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/982.html"},{"agencyId":"1","color":"","description":"Loyal Heights - University District","id":"1_100225","longName":"","nullSafeShortName":"45","shortName":"45","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/045.html"},{"agencyId":"1","color":"","description":"Northgate - Roosevelt - University District","id":"1_100259","longName":"","nullSafeShortName":"67","shortName":"67","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/067.html"},{"agencyId":"1","color":"","description":"Northgate - Lake City - Sand Point - Univ District","id":"1_100269","longName":"","nullSafeShortName":"75","shortName":"75","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/075.html"},{"agencyId":"40","color":"28813F","description":"1 Line runs between Northgate Station and Angle Lake Station seven days a week","id":"40_100479","longName":"Northgate - Angle Lake","nullSafeShortName":"1 Line","shortName":"1 Line","textColor":"FFFFFF","type":0,"url":"https://www.soundtransit.org/1"}],"situations":[],"stopTimes":[],"stops":[{"code":"N05","direction":"","id":"40_N05","lat":47.649815,"locationType":0,"lon":-122.303763,"name":"Univ of Washington","parent":"","routeIds":[],"staticRouteIds":[],"wheelchairBoarding":"ACCESSIBLE"},{"code":"N05","direction":"","id":"40_N05","lat":47.649815,"locationType":0,"lon":-122.303763,"name":"Univ of Washington","parent":"","routeIds":[],"staticRouteIds":[],"wheelchairBoarding":"ACCESSIBLE"}],"trips":[]}},"text":"OK","version":2}
Request Parameters
lat
- The latitude coordinate of the search centerlon
- The longitude coordinate of the search centerradius
- The search radius in meters (optional)latSpan
/lonSpan
- An alternative toradius
to set the search bounding box (optional)query
- A specific stop code to search for (optional)
If you just specify a lat,lon search location, the stops-for-location
method will just return nearby stops. If you specify an optional query
parameter, we’ll search for nearby stops with the specified code. This is the primary method from going from a user-facing stop code like “75403” to the actual underlying stop id unique to a stop for a particular transit agency.
Response
The stops-for-location
method returns a list result, so see additional documentation on controlling the number of elements returned and interpreting the results. The list contents are <stop/>
elements, so see details about the various properties of the <stop/>
element.