findBusStationDepartures

To retrieve the list of next departures from a bus station.

url: http://html5.sasabus.org/backend/sasabusdb/findBusStationDepartures?busStationId=:5142:&yyyymmddhhmm=201309160911&callback=function123

parameters:

  • callback: the javascript function to call when data is ready (JSONP standard)
  • busStationId: the id of the bus station. Id can be read from listBusAreasLinesStopsStations
  • yyyymmddhhmm: the date / time for departure calculation.

Response


function123({
  busTripStops: [
    {
      busTrip: {
        areaId: 1,
        busLineId: 18,
        busTripStop: [
          {
            busStopId: 5330,
            id: 15082,
            timeHHMMSS: 191000
          },
          {
            busStopId: 5250,
            id: 15083,
            timeHHMMSS: 191100
          },
          {
            busStopId: 5142,
            id: 15084,
            timeHHMMSS: 191200
          },
          {
            busStopId: 5135,
            id: 15085,
            timeHHMMSS: 191300
          },
          {
            busStopId: 5129,
            id: 15086,
            timeHHMMSS: 191400
          },
          {
            busStopId: 5126,
            id: 15087,
            timeHHMMSS: 191500
          },
          {
            busStopId: 5125,
            id: 15088,
            timeHHMMSS: 191700
          },
          {
            busStopId: 5029,
            id: 15089,
            timeHHMMSS: 191800
          },
          {
            busStopId: 5027,
            id: 15090,
            timeHHMMSS: 191900
          },
          {
            busStopId: 5025,
            id: 15091,
            timeHHMMSS: 192000
          },
          {
            busStopId: 5032,
            id: 15092,
            timeHHMMSS: 192000
          },
          {
            busStopId: 5022,
            id: 15093,
            timeHHMMSS: 192200
          },
          {
            busStopId: 5020,
            id: 15094,
            timeHHMMSS: 192300
          },
          {
            busStopId: 5018,
            id: 15095,
            timeHHMMSS: 192400
          },
          {
            busStopId: 5039,
            id: 15096,
            timeHHMMSS: 192500
          },
          {
            busStopId: 5041,
            id: 15097,
            timeHHMMSS: 192600
          },
          {
            busStopId: 5043,
            id: 15098,
            timeHHMMSS: 192800
          },
          {
            busStopId: 5130,
            id: 15099,
            timeHHMMSS: 193000
          },
          {
            busStopId: 5132,
            id: 15100,
            timeHHMMSS: 193100
          },
          {
            busStopId: 5134,
            id: 15101,
            timeHHMMSS: 193200
          },
          {
            busStopId: 5136,
            id: 15102,
            timeHHMMSS: 193300
          },
          {
            busStopId: 5137,
            id: 15103,
            timeHHMMSS: 193400
          },
          {
            busStopId: 5138,
            id: 15104,
            timeHHMMSS: 193500
          },
          {
            busStopId: 5141,
            id: 15105,
            timeHHMMSS: 193600
          },
          {
            busStopId: 5140,
            id: 15106,
            timeHHMMSS: 193600
          },
          {
            busStopId: 5139,
            id: 15107,
            timeHHMMSS: 193700
          },
          {
            busStopId: 5330,
            id: 15108,
            timeHHMMSS: 193800
          }
        ],
        endHHMMSS: 0,
        id: 700,
        runningDays: "01111100111110011111001111100111110011111001111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        startHHMMSS: 999999
      },
      index: 2
    },

 

0 Attachments
25719 Views
Comments
No comments yet. Be the first.