All OTP Transit entities should extend this class. The purpose of the class is to enforce a common implementation of the identity:
| name | data type | constraints | description |
|---|---|---|---|
| pathwayMode | number | required | |
| fromStop | StationElement | ||
| toStop | StationElement | ||
| name | string | ||
| reversedName | string | ||
| traversalTime | number | required | |
| length | number | required | |
| bidirectional | boolean | required | |
| stairCount | number | required | |
| slope | number | required | |
| pathwayModeWheelchairAccessible | boolean | required | |
Properties inherited from TransitEntity |
|||
| id | FeedScopedId | ||
Example
{
"pathwayMode" : 12345,
"fromStop" : {
"name" : "...",
"code" : "...",
"description" : "...",
"coordinate" : { },
"wheelchairBoarding" : "POSSIBLE",
"levelName" : "...",
"levelIndex" : 12345.0,
"parentStation" : {
"name" : "...",
"coordinate" : { },
"code" : "...",
"description" : "...",
"url" : "...",
"priority" : "ALLOWED",
"timezone" : { },
"childStops" : [ { }, { } ],
"lat" : 12345.0,
"lon" : 12345.0,
"geometry" : { },
"id" : { }
},
"partOfStation" : true,
"id" : {
"feedId" : "...",
"id" : "..."
}
},
"toStop" : {
"name" : "...",
"code" : "...",
"description" : "...",
"coordinate" : { },
"wheelchairBoarding" : "NO_INFORMATION",
"levelName" : "...",
"levelIndex" : 12345.0,
"parentStation" : {
"name" : "...",
"coordinate" : { },
"code" : "...",
"description" : "...",
"url" : "...",
"priority" : "RECOMMENDED",
"timezone" : { },
"childStops" : [ { }, { } ],
"lat" : 12345.0,
"lon" : 12345.0,
"geometry" : { },
"id" : { }
},
"partOfStation" : true,
"id" : {
"feedId" : "...",
"id" : "..."
}
},
"name" : "...",
"reversedName" : "...",
"traversalTime" : 12345,
"length" : 12345.0,
"bidirectional" : true,
"stairCount" : 12345,
"slope" : 12345.0,
"pathwayModeWheelchairAccessible" : true,
"id" : {
"feedId" : "...",
"id" : "..."
}
}