public class Leg extends Object
Modifier and Type | Field and Description |
---|---|
String |
agencyBrandingUrl |
String |
agencyId
For transit legs, the ID of the transit agency that operates the service used for this leg.
|
String |
agencyName |
int |
agencyTimeZoneOffset |
String |
agencyUrl |
List<LocalizedAlert> |
alerts |
String |
alightRule |
int |
arrivalDelay
For transit leg, the offset from the scheduled arrival-time of the alighting stop in this leg.
|
String |
boardRule |
Boolean |
callAndRide
True if this is a call-and-ride leg.
|
int |
departureDelay
For transit leg, the offset from the scheduled departure-time of the boarding stop in this leg.
|
Double |
distance
The distance traveled while traversing the leg in meters.
|
Calendar |
endTime
The date and time this leg ends.
|
Calendar |
flexCallAndRideMaxStartTime |
Calendar |
flexCallAndRideMinEndTime |
double |
flexDrtAdvanceBookMin
trip.drt_advance_book_min if this is a demand-response leg
|
String |
flexDrtDropOffMessage
Agency message if this is leg has a demand-response dropoff and the Trip has
`drt_drop_off_message` defined.
|
String |
flexDrtPickupMessage
Agency message if this is leg has a demand-response pickup and the Trip has
`drt_pickup_message` defined.
|
String |
flexFlagStopDropOffMessage
Agency message if this is leg has a flag stop dropoff and the Trip has
`continuous_drop_off_message` defined.
|
String |
flexFlagStopPickupMessage
Agency message if this is leg has a flag stop pickup and the Trip has
`continuous_pickup_message` defined.
|
Place |
from
The Place where the leg originates.
|
String |
headsign
For transit legs, the headsign of the bus or train being used.
|
Integer |
headway
The best estimate of the time between two arriving vehicles.
|
Boolean |
interlineWithPreviousLeg
For transit legs, if the rider should stay on the vehicle as it changes route names.
|
Boolean |
isNonExactFrequency
Is this a frequency-based trip with non-strict departure times?
|
EncodedPolylineBean |
legGeometry
The leg's geometry.
|
String |
mode
The mode (e.g.,
Walk ) used when traversing this leg. |
Boolean |
pathway
Is this leg a traversing pathways?
|
Boolean |
realTime
Whether there is real-time data about this Leg
|
Boolean |
rentedBike |
String |
route
For transit legs, the route of the bus or train being used.
|
String |
routeBrandingUrl
For transit leg, the route's branding URL (if one exists).
|
String |
routeColor
For transit leg, the route's (background) color (if one exists).
|
FeedScopedId |
routeId
For transit legs, the ID of the route.
|
String |
routeLongName |
String |
routeShortName |
String |
routeTextColor
For transit leg, the route's text color (if one exists).
|
Integer |
routeType
For transit legs, the type of the route.
|
String |
serviceDate
For transit legs, the service date of the trip.
|
Calendar |
startTime
The date and time this leg begins.
|
List<Place> |
stop
For transit legs, intermediate stops between the Place where the leg originates and the Place where the leg ends.
|
Place |
to
The Place where the leg begins.
|
String |
tripBlockId
For transit leg, the trip's block ID (if one exists).
|
FeedScopedId |
tripId
For transit legs, the ID of the trip.
|
String |
tripShortName
For transit leg, the trip's short name (if one exists).
|
List<WalkStep> |
walkSteps
A series of turn by turn instructions used for walking, biking and driving.
|
Constructor and Description |
---|
Leg() |
Modifier and Type | Method and Description |
---|---|
void |
addAlert(Alert alert,
Locale locale) |
double |
getDuration()
The leg's duration in seconds
|
Boolean |
isTransitLeg()
Whether this leg is a transit leg or not.
|
void |
setTimeZone(TimeZone timeZone) |
public Calendar startTime
public Calendar endTime
public int departureDelay
public int arrivalDelay
public Boolean realTime
public Boolean isNonExactFrequency
public Integer headway
public Double distance
public Boolean pathway
public String mode
Walk
) used when traversing this leg.public String route
public String agencyName
public String agencyUrl
public String agencyBrandingUrl
public int agencyTimeZoneOffset
public String routeColor
public Integer routeType
public FeedScopedId routeId
public String routeTextColor
public Boolean interlineWithPreviousLeg
public String tripShortName
public String tripBlockId
public String headsign
public String agencyId
public FeedScopedId tripId
public String serviceDate
public String routeBrandingUrl
public Place from
public Place to
public List<Place> stop
public EncodedPolylineBean legGeometry
public List<WalkStep> walkSteps
public List<LocalizedAlert> alerts
public String routeShortName
public String routeLongName
public String boardRule
public String alightRule
public Boolean rentedBike
public Boolean callAndRide
public Calendar flexCallAndRideMaxStartTime
public Calendar flexCallAndRideMinEndTime
public double flexDrtAdvanceBookMin
public String flexDrtPickupMessage
public String flexDrtDropOffMessage
public String flexFlagStopPickupMessage
public String flexFlagStopDropOffMessage
Copyright © 2019. All rights reserved.