GET stoppatterns
Returns a list of stop patterns based on the provided information.
Resource URL
http://api.rgrta.com/stoppatterns
Parameters
linedirid
optional |
Specifies the Line Direction ID, which can be obtained from the API using the Lines methods.
Example Value: 91180 |
patternid
optional
|
Specifies the Pattern ID, which can be obtained from the API using the Patterns methods.
Example Value: 54321 |
Response Object
StopPattern
Example Request
GET - http://api.rgrta.com/stoppatterns?patternid=84228
[
{
"PatternId":84228,
"Sequence":1,
"LineDirId":110220,
"SignId":62,
"FromStopNum":147,
"ToStopNum":148,
"Distance":179.94783
},
{
"PatternId":84228,
"Sequence":2,
"LineDirId":110220,
"SignId":62,
"FromStopNum":148,
"ToStopNum":151,
"Distance":172.685135
},
...,
{
"PatternId":84228,
"Sequence":27,
"LineDirId":110220,
"SignId":62,
"FromStopNum":176,
"ToStopNum":177,
"Distance":138.427872
}
]