TripPlan Data Type

A TripPlan is a set of ways to get from point A to point B at time T.

Properties
name data type description
date number The time and date of travel
from Place The origin
to Place The destination
itineraries array of Itinerary A list of possible itineraries

Example

{
  "date" : 12345,
  "from" : {
    "name" : "...",
    "stopId" : {
      "agencyId" : "...",
      "id" : "..."
    },
    "stopCode" : "...",
    "platformCode" : "...",
    "lon" : 12345.0,
    "lat" : 12345.0,
    "arrival" : 12345,
    "departure" : 12345,
    "orig" : "...",
    "zoneId" : "...",
    "stopIndex" : 12345,
    "stopSequence" : 12345,
    "vertexType" : "NORMAL",
    "bikeShareId" : "...",
    "boardAlightType" : "FLAG_STOP",
    "flagStopArea" : {
      "points" : "...",
      "levels" : "...",
      "length" : 12345
    }
  },
  "to" : {
    "name" : "...",
    "stopId" : {
      "agencyId" : "...",
      "id" : "..."
    },
    "stopCode" : "...",
    "platformCode" : "...",
    "lon" : 12345.0,
    "lat" : 12345.0,
    "arrival" : 12345,
    "departure" : 12345,
    "orig" : "...",
    "zoneId" : "...",
    "stopIndex" : 12345,
    "stopSequence" : 12345,
    "vertexType" : "TRANSIT",
    "bikeShareId" : "...",
    "boardAlightType" : "DEFAULT",
    "flagStopArea" : {
      "points" : "...",
      "levels" : "...",
      "length" : 12345
    }
  },
  "itineraries" : [ {
    "duration" : 12345,
    "startTime" : 12345,
    "endTime" : 12345,
    "walkTime" : 12345,
    "transitTime" : 12345,
    "waitingTime" : 12345,
    "walkDistance" : 12345.0,
    "walkLimitExceeded" : true,
    "elevationLost" : 12345.0,
    "elevationGained" : 12345.0,
    "transfers" : 12345,
    "fare" : {
      "fare" : {
        "property1" : { },
        "property2" : { }
      },
      "details" : {
        "property1" : [ { }, { } ],
        "property2" : [ { }, { } ]
      }
    },
    "legs" : [ {
      "startTime" : 12345,
      "endTime" : 12345,
      "departureDelay" : 12345,
      "arrivalDelay" : 12345,
      "realTime" : true,
      "isNonExactFrequency" : true,
      "headway" : 12345,
      "distance" : 12345.0,
      "pathway" : true,
      "mode" : "...",
      "route" : "...",
      "agencyName" : "...",
      "agencyUrl" : "...",
      "agencyBrandingUrl" : "...",
      "agencyTimeZoneOffset" : 12345,
      "routeColor" : "...",
      "routeType" : 12345,
      "routeId" : { },
      "routeTextColor" : "...",
      "interlineWithPreviousLeg" : true,
      "tripShortName" : "...",
      "tripBlockId" : "...",
      "headsign" : "...",
      "agencyId" : "...",
      "tripId" : { },
      "serviceDate" : "...",
      "routeBrandingUrl" : "...",
      "from" : { },
      "to" : { },
      "intermediateStops" : [ { }, { } ],
      "legGeometry" : { },
      "steps" : [ { }, { } ],
      "alerts" : [ { }, { } ],
      "routeShortName" : "...",
      "routeLongName" : "...",
      "boardRule" : "...",
      "alightRule" : "...",
      "rentedBike" : true,
      "callAndRide" : true,
      "flexCallAndRideMaxStartTime" : 12345,
      "flexCallAndRideMinEndTime" : 12345,
      "flexDrtAdvanceBookMin" : 12345.0,
      "flexDrtPickupMessage" : "...",
      "flexDrtDropOffMessage" : "...",
      "flexFlagStopPickupMessage" : "...",
      "flexFlagStopDropOffMessage" : "...",
      "transitLeg" : true,
      "duration" : 12345.0
    }, {
      "startTime" : 12345,
      "endTime" : 12345,
      "departureDelay" : 12345,
      "arrivalDelay" : 12345,
      "realTime" : true,
      "isNonExactFrequency" : true,
      "headway" : 12345,
      "distance" : 12345.0,
      "pathway" : true,
      "mode" : "...",
      "route" : "...",
      "agencyName" : "...",
      "agencyUrl" : "...",
      "agencyBrandingUrl" : "...",
      "agencyTimeZoneOffset" : 12345,
      "routeColor" : "...",
      "routeType" : 12345,
      "routeId" : { },
      "routeTextColor" : "...",
      "interlineWithPreviousLeg" : true,
      "tripShortName" : "...",
      "tripBlockId" : "...",
      "headsign" : "...",
      "agencyId" : "...",
      "tripId" : { },
      "serviceDate" : "...",
      "routeBrandingUrl" : "...",
      "from" : { },
      "to" : { },
      "intermediateStops" : [ { }, { } ],
      "legGeometry" : { },
      "steps" : [ { }, { } ],
      "alerts" : [ { }, { } ],
      "routeShortName" : "...",
      "routeLongName" : "...",
      "boardRule" : "...",
      "alightRule" : "...",
      "rentedBike" : true,
      "callAndRide" : true,
      "flexCallAndRideMaxStartTime" : 12345,
      "flexCallAndRideMinEndTime" : 12345,
      "flexDrtAdvanceBookMin" : 12345.0,
      "flexDrtPickupMessage" : "...",
      "flexDrtDropOffMessage" : "...",
      "flexFlagStopPickupMessage" : "...",
      "flexFlagStopDropOffMessage" : "...",
      "transitLeg" : true,
      "duration" : 12345.0
    } ],
    "tooSloped" : true
  }, {
    "duration" : 12345,
    "startTime" : 12345,
    "endTime" : 12345,
    "walkTime" : 12345,
    "transitTime" : 12345,
    "waitingTime" : 12345,
    "walkDistance" : 12345.0,
    "walkLimitExceeded" : true,
    "elevationLost" : 12345.0,
    "elevationGained" : 12345.0,
    "transfers" : 12345,
    "fare" : {
      "fare" : {
        "property1" : { },
        "property2" : { }
      },
      "details" : {
        "property1" : [ { }, { } ],
        "property2" : [ { }, { } ]
      }
    },
    "legs" : [ {
      "startTime" : 12345,
      "endTime" : 12345,
      "departureDelay" : 12345,
      "arrivalDelay" : 12345,
      "realTime" : true,
      "isNonExactFrequency" : true,
      "headway" : 12345,
      "distance" : 12345.0,
      "pathway" : true,
      "mode" : "...",
      "route" : "...",
      "agencyName" : "...",
      "agencyUrl" : "...",
      "agencyBrandingUrl" : "...",
      "agencyTimeZoneOffset" : 12345,
      "routeColor" : "...",
      "routeType" : 12345,
      "routeId" : { },
      "routeTextColor" : "...",
      "interlineWithPreviousLeg" : true,
      "tripShortName" : "...",
      "tripBlockId" : "...",
      "headsign" : "...",
      "agencyId" : "...",
      "tripId" : { },
      "serviceDate" : "...",
      "routeBrandingUrl" : "...",
      "from" : { },
      "to" : { },
      "intermediateStops" : [ { }, { } ],
      "legGeometry" : { },
      "steps" : [ { }, { } ],
      "alerts" : [ { }, { } ],
      "routeShortName" : "...",
      "routeLongName" : "...",
      "boardRule" : "...",
      "alightRule" : "...",
      "rentedBike" : true,
      "callAndRide" : true,
      "flexCallAndRideMaxStartTime" : 12345,
      "flexCallAndRideMinEndTime" : 12345,
      "flexDrtAdvanceBookMin" : 12345.0,
      "flexDrtPickupMessage" : "...",
      "flexDrtDropOffMessage" : "...",
      "flexFlagStopPickupMessage" : "...",
      "flexFlagStopDropOffMessage" : "...",
      "transitLeg" : true,
      "duration" : 12345.0
    }, {
      "startTime" : 12345,
      "endTime" : 12345,
      "departureDelay" : 12345,
      "arrivalDelay" : 12345,
      "realTime" : true,
      "isNonExactFrequency" : true,
      "headway" : 12345,
      "distance" : 12345.0,
      "pathway" : true,
      "mode" : "...",
      "route" : "...",
      "agencyName" : "...",
      "agencyUrl" : "...",
      "agencyBrandingUrl" : "...",
      "agencyTimeZoneOffset" : 12345,
      "routeColor" : "...",
      "routeType" : 12345,
      "routeId" : { },
      "routeTextColor" : "...",
      "interlineWithPreviousLeg" : true,
      "tripShortName" : "...",
      "tripBlockId" : "...",
      "headsign" : "...",
      "agencyId" : "...",
      "tripId" : { },
      "serviceDate" : "...",
      "routeBrandingUrl" : "...",
      "from" : { },
      "to" : { },
      "intermediateStops" : [ { }, { } ],
      "legGeometry" : { },
      "steps" : [ { }, { } ],
      "alerts" : [ { }, { } ],
      "routeShortName" : "...",
      "routeLongName" : "...",
      "boardRule" : "...",
      "alightRule" : "...",
      "rentedBike" : true,
      "callAndRide" : true,
      "flexCallAndRideMaxStartTime" : 12345,
      "flexCallAndRideMinEndTime" : 12345,
      "flexDrtAdvanceBookMin" : 12345.0,
      "flexDrtPickupMessage" : "...",
      "flexDrtDropOffMessage" : "...",
      "flexFlagStopPickupMessage" : "...",
      "flexFlagStopDropOffMessage" : "...",
      "transitLeg" : true,
      "duration" : 12345.0
    } ],
    "tooSloped" : true
  } ]
}