FlexTrip Data Type

This class represents the different variations of what is considered flexible transit, and its subclasses encapsulates the different business logic, which the different types of services adhere to.

Abstract Type
Properties
name data type description
stops array of StopLocation Returns all the stops that are in this trip.

Note that they are in no specific order and don't correspond 1-to-1 to the stop times of the trip.

Location groups are expanded into their constituent stops.

trip Trip
Properties inherited from AbstractTransitEntity
id FeedScopedId

Example

{
  "stops" : [ {
    "id" : {
      "feedId" : "...",
      "id" : "..."
    },
    "geometry" : {
      "envelope" : { },
      "length" : 12345.0,
      "geometryType" : "...",
      "boundary" : { },
      "rectangle" : true,
      "centroid" : { },
      "simple" : true,
      "interiorPoint" : { },
      "factory" : { },
      "valid" : true,
      "coordinate" : { },
      "precisionModel" : { },
      "envelopeInternal" : { },
      "boundaryDimension" : 12345,
      "dimension" : 12345,
      "area" : 12345.0,
      "empty" : true,
      "userData" : { },
      "numGeometries" : 12345,
      "numPoints" : 12345,
      "SRID" : 12345,
      "coordinates" : [ { }, { } ]
    },
    "lon" : 12345.0,
    "parentStation" : {
      "name" : { },
      "childStops" : [ { }, { } ],
      "lat" : 12345.0,
      "lon" : 12345.0,
      "coordinate" : { },
      "code" : "...",
      "description" : { },
      "url" : { },
      "priority" : "ALLOWED",
      "timezone" : "...",
      "transfersNotAllowed" : true,
      "geometry" : { },
      "id" : { }
    },
    "netexVehicleSubmode" : { },
    "wheelchairAccessibility" : "NOT_POSSIBLE",
    "stationOrStopId" : {
      "feedId" : "...",
      "id" : "..."
    },
    "code" : "...",
    "timeZone" : "...",
    "lat" : 12345.0,
    "platformCode" : "...",
    "fareZones" : [ {
      "name" : "...",
      "id" : { }
    }, {
      "name" : "...",
      "id" : { }
    } ],
    "index" : 12345,
    "description" : { },
    "gtfsVehicleType" : "CABLE_CAR",
    "name" : { },
    "partOfStation" : true,
    "coordinate" : { },
    "url" : { },
    "priority" : "DISCOURAGED",
    "firstZoneAsString" : "..."
  }, {
    "id" : {
      "feedId" : "...",
      "id" : "..."
    },
    "geometry" : {
      "envelope" : { },
      "length" : 12345.0,
      "geometryType" : "...",
      "boundary" : { },
      "rectangle" : true,
      "centroid" : { },
      "simple" : true,
      "interiorPoint" : { },
      "factory" : { },
      "valid" : true,
      "coordinate" : { },
      "precisionModel" : { },
      "envelopeInternal" : { },
      "boundaryDimension" : 12345,
      "dimension" : 12345,
      "area" : 12345.0,
      "empty" : true,
      "userData" : { },
      "numGeometries" : 12345,
      "numPoints" : 12345,
      "SRID" : 12345,
      "coordinates" : [ { }, { } ]
    },
    "lon" : 12345.0,
    "parentStation" : {
      "name" : { },
      "childStops" : [ { }, { } ],
      "lat" : 12345.0,
      "lon" : 12345.0,
      "coordinate" : { },
      "code" : "...",
      "description" : { },
      "url" : { },
      "priority" : "RECOMMENDED",
      "timezone" : "...",
      "transfersNotAllowed" : true,
      "geometry" : { },
      "id" : { }
    },
    "netexVehicleSubmode" : { },
    "wheelchairAccessibility" : "POSSIBLE",
    "stationOrStopId" : {
      "feedId" : "...",
      "id" : "..."
    },
    "code" : "...",
    "timeZone" : "...",
    "lat" : 12345.0,
    "platformCode" : "...",
    "fareZones" : [ {
      "name" : "...",
      "id" : { }
    }, {
      "name" : "...",
      "id" : { }
    } ],
    "index" : 12345,
    "description" : { },
    "gtfsVehicleType" : "CABLE_CAR",
    "name" : { },
    "partOfStation" : true,
    "coordinate" : { },
    "url" : { },
    "priority" : "RECOMMENDED",
    "firstZoneAsString" : "..."
  } ],
  "trip" : {
    "operator" : {
      "name" : "...",
      "url" : "...",
      "phone" : "...",
      "id" : { }
    },
    "route" : {
      "agency" : { },
      "operator" : { },
      "branding" : { },
      "groupsOfRoutes" : [ { }, { } ],
      "shortName" : "...",
      "longName" : { },
      "mode" : "AIRPLANE",
      "description" : "...",
      "gtfsType" : 12345,
      "gtfsSortOrder" : 12345,
      "netexSubmode" : { },
      "url" : "...",
      "color" : "...",
      "textColor" : "...",
      "bikesAllowed" : "ALLOWED",
      "flexibleLineType" : "...",
      "name" : "...",
      "id" : { }
    },
    "serviceId" : {
      "feedId" : "...",
      "id" : "..."
    },
    "shortName" : "...",
    "mode" : "SUBWAY",
    "netexSubMode" : { },
    "headsign" : { },
    "shapeId" : {
      "feedId" : "...",
      "id" : "..."
    },
    "direction" : "UNKNOWN",
    "bikesAllowed" : "NOT_ALLOWED",
    "wheelchairBoarding" : "POSSIBLE",
    "gtfsBlockId" : "...",
    "gtfsFareId" : "...",
    "netexInternalPlanningCode" : "...",
    "netexAlteration" : "REPLACED",
    "id" : {
      "feedId" : "...",
      "id" : "..."
    }
  },
  "id" : {
    "feedId" : "...",
    "id" : "..."
  }
}