1. Home
  2. Docs
  3. Open Trip Planner
  4. Getting Stops

Getting Stops

Example: get all current stops for the Blue Line (801):

curl 'https://otp.metroservices.io/otp/routers/default/index/routes/uscalacmtarail:801/stops' \
-XGET \
-H 'Accept: application/json, text/plain, /' \
-H 'Accept-Encoding: br, gzip, deflate' \
-H 'Connection: keep-alive'

That request returns:

[{
"id": "uscalacmtarail:80153",
"code": "80153",
"name": "1st Street Station",
"lat": 33.76874,
"lon": -118.189362,
"cluster": "80153S"
}, {
"id": "uscalacmtarail:80109",
"code": "80109",
"name": "Del Amo Station",
"lat": 33.848222,
"lon": -118.211017,
"cluster": "80109S"
}, {
"id": "uscalacmtarail:80107",
"code": "80107",
"name": "Willow Street Station",
"lat": 33.807079,
"lon": -118.189834,
"cluster": "80107S"
}, {
"id": "uscalacmtarail:80108",
"code": "80108",
"name": "Wardlow Station",
"lat": 33.819865,
"lon": -118.19609,
"cluster": "80108S"
}, {
"id": "uscalacmtarail:80105",
"code": "80105",
"name": "Anaheim Street Station",
"lat": 33.78183,
"lon": -118.189384,
"cluster": "80105S"
}, {
"id": "uscalacmtarail:80106",
"code": "80106",
"name": "Pacific Coast Hwy Station",
"lat": 33.78909,
"lon": -118.189382,
"cluster": "80106S"
}, {
"id": "uscalacmtarail:80101",
"code": "80101",
"name": "Downtown Long Beach Station",
"lat": 33.768071,
"lon": -118.192921,
"cluster": "80101S"
}, {
"id": "uscalacmtarail:80102",
"code": "80102",
"name": "Pacific Ave Station",
"lat": 33.772258,
"lon": -118.1937,
"cluster": "80102S"
}, {
"id": "uscalacmtarail:80110",
"code": "80110",
"name": "Artesia Station",
"lat": 33.876082,
"lon": -118.222503,
"cluster": "80110S"
}, {
"id": "uscalacmtarail:80154",
"code": "80154",
"name": "5th Street Station",
"lat": 33.773598,
"lon": -118.189412,
"cluster": "80154S"
}, {
"id": "uscalacmtarail:80111",
"code": "80111",
"name": "Compton Station",
"lat": 33.89749,
"lon": -118.224249,
"cluster": "80111S"
}]
Was this article helpful to you? Yes No

How can we help?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.