GET route/{routeName}/trip/{tripId}/pattern
Retrieve a list of Time Points describing the path the vehicle will travel.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
routeName |
The route for whose timepoints should be retrieved. |
string |
Required |
tripId |
The trip for whose timepoints should be retrieved. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of TimePointName | Description | Type | Additional information |
---|---|---|---|
TripId |
The Trip for which this timepoint and sequence are valid. |
integer |
None. |
Sequence |
The order this timepoint falls along the path for the given trip. |
integer |
None. |
Latitude | decimal number |
None. |
|
Longitude | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[ { "TripId": 1, "Sequence": 2, "Latitude": 1.0, "Longitude": 1.0 }, { "TripId": 1, "Sequence": 2, "Latitude": 1.0, "Longitude": 1.0 } ]
text/html
Sample:
[{"TripId":1,"Sequence":2,"Latitude":1.0,"Longitude":1.0},{"TripId":1,"Sequence":2,"Latitude":1.0,"Longitude":1.0}]
application/xml, text/xml
Sample:
<ArrayOfTimePoint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models"> <TimePoint> <Latitude>1</Latitude> <Longitude>1</Longitude> <Sequence>2</Sequence> <TripId>1</TripId> </TimePoint> <TimePoint> <Latitude>1</Latitude> <Longitude>1</Longitude> <Sequence>2</Sequence> <TripId>1</TripId> </TimePoint> </ArrayOfTimePoint>