Trip Data Type

Implement this interface to include more info into the toString.

Implemented Interfaces
LogInfo
Properties
name data type constraints description
operator Operator   Operator running the trip. Returns operator of this trip, if it exist, or else the route operator.
route Route required
serviceId FeedScopedId   At the moment this is probably null-safe, but we want to reduce this to GTFS serviceId for matching trips in GTFS RT updates, if the datasource is NeTEx, then we do not have this and would like to remove todays generated ID.
shortName string   Public code or identifier for the journey. Equal to NeTEx PublicCode. GTFS and NeTEx have additional constraints on this fields that are not enforced in OTP.
mode TransitMode required
netexSubMode object required
headsign I18NString  
shapeId FeedScopedId  
direction Direction required The direction for this Trip (and all other Trips in this TripPattern).
bikesAllowed BikeAccess required
wheelchairBoarding Accessibility required
gtfsBlockId string  
gtfsFareId string   Custom extension for KCM to specify a fare per-trip
netexInternalPlanningCode string   Internal code (non-public identifier) for the journey (e.g. train- or trip number from the planners' tool). This is kept to ensure compatibility with legacy planning systems. In NeTEx this maps to privateCode, there is no GTFS equivalent.
netexAlteration TripAlteration required Default alteration for a trip.

This is planned, by default (e.g. GTFS and if not set explicit).

Properties inherited from AbstractTransitEntity
id FeedScopedId  

Example

{
  "operator" : {
    "name" : "...",
    "url" : "...",
    "phone" : "...",
    "id" : {
      "feedId" : "...",
      "id" : "..."
    }
  },
  "route" : {
    "agency" : {
      "name" : "...",
      "timezone" : "...",
      "url" : "...",
      "lang" : "...",
      "phone" : "...",
      "fareUrl" : "...",
      "brandingUrl" : "...",
      "id" : { }
    },
    "operator" : {
      "name" : "...",
      "url" : "...",
      "phone" : "...",
      "id" : { }
    },
    "branding" : {
      "name" : "...",
      "shortName" : "...",
      "url" : "...",
      "image" : "...",
      "description" : "...",
      "id" : { }
    },
    "groupsOfRoutes" : [ {
      "name" : "...",
      "shortName" : "...",
      "privateCode" : "...",
      "description" : "...",
      "id" : { }
    }, {
      "name" : "...",
      "shortName" : "...",
      "privateCode" : "...",
      "description" : "...",
      "id" : { }
    } ],
    "shortName" : "...",
    "longName" : { },
    "mode" : "AIRPLANE",
    "description" : "...",
    "gtfsType" : 12345,
    "gtfsSortOrder" : 12345,
    "netexSubmode" : { },
    "url" : "...",
    "color" : "...",
    "textColor" : "...",
    "bikesAllowed" : "ALLOWED",
    "flexibleLineType" : "...",
    "name" : "...",
    "id" : {
      "feedId" : "...",
      "id" : "..."
    }
  },
  "serviceId" : {
    "feedId" : "...",
    "id" : "..."
  },
  "shortName" : "...",
  "mode" : "GONDOLA",
  "netexSubMode" : { },
  "headsign" : { },
  "shapeId" : {
    "feedId" : "...",
    "id" : "..."
  },
  "direction" : "ANTICLOCKWISE",
  "bikesAllowed" : "ALLOWED",
  "wheelchairBoarding" : "NO_INFORMATION",
  "gtfsBlockId" : "...",
  "gtfsFareId" : "...",
  "netexInternalPlanningCode" : "...",
  "netexAlteration" : "PLANNED",
  "id" : {
    "feedId" : "...",
    "id" : "..."
  }
}