Back

GET api/V1/ServiceataGlance/Buses/All

Displays all in service bus trips.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A collection of bus trips

Response Formats

application/json, text/json

Sample:
{
  "Metadata": {
    "TimeStamp": "sample string 1",
    "ErrorCode": "sample string 2",
    "ErrorMessage": "sample string 3"
  },
  "Trips": {
    "Trip": [
      {
        "BusType": "sample string 1",
        "TripNumber": "sample string 2",
        "StartTime": "sample string 3",
        "EndTime": "sample string 4",
        "LineCode": "sample string 5",
        "RouteNumber": "sample string 6",
        "VariantDir": "sample string 7",
        "Display": "sample string 8",
        "Latitude": 9.1,
        "Longitude": 10.1,
        "IsInMotion": true,
        "DelaySeconds": 12,
        "Course": 13.0,
        "FirstStopCode": "sample string 14",
        "LastStopCode": "sample string 15",
        "PrevStopCode": "sample string 16",
        "NextStopCode": "sample string 17",
        "AtStationCode": "sample string 18",
        "ModifiedDate": "2020-10-24 08:25:39",
        "OccupancyPercentage": 21
      },
      {
        "BusType": "sample string 1",
        "TripNumber": "sample string 2",
        "StartTime": "sample string 3",
        "EndTime": "sample string 4",
        "LineCode": "sample string 5",
        "RouteNumber": "sample string 6",
        "VariantDir": "sample string 7",
        "Display": "sample string 8",
        "Latitude": 9.1,
        "Longitude": 10.1,
        "IsInMotion": true,
        "DelaySeconds": 12,
        "Course": 13.0,
        "FirstStopCode": "sample string 14",
        "LastStopCode": "sample string 15",
        "PrevStopCode": "sample string 16",
        "NextStopCode": "sample string 17",
        "AtStationCode": "sample string 18",
        "ModifiedDate": "2020-10-24 08:25:39",
        "OccupancyPercentage": 21
      }
    ]
  }
}

text/xml

Sample:
<Result>
  <Metadata TimeStamp="sample string 1" ErrorCode="sample string 2" ErrorMessage="sample string 3" />
  <Trips>
    <Trip TripNumber="sample string 2" StartTime="sample string 3" EndTime="sample string 4" LineCode="sample string 5" RouteNumber="sample string 6" VariantDir="sample string 7" Display="sample string 8" Latitude="9.1" Longitude="10.1" IsInMotion="true" DelaySeconds="12" Course="13" FirstStopCode="sample string 14" LastStopCode="sample string 15" PrevStopCode="sample string 16" NextStopCode="sample string 17" AtStationCode="sample string 18" ModifiedDate="2020-10-24 08:25:39" OccupancyPercentage="21" BusType="sample string 1" />
    <Trip TripNumber="sample string 2" StartTime="sample string 3" EndTime="sample string 4" LineCode="sample string 5" RouteNumber="sample string 6" VariantDir="sample string 7" Display="sample string 8" Latitude="9.1" Longitude="10.1" IsInMotion="true" DelaySeconds="12" Course="13" FirstStopCode="sample string 14" LastStopCode="sample string 15" PrevStopCode="sample string 16" NextStopCode="sample string 17" AtStationCode="sample string 18" ModifiedDate="2020-10-24 08:25:39" OccupancyPercentage="21" BusType="sample string 1" />
  </Trips>
</Result>