public class Itinerary extends Object
Modifier and Type | Field and Description |
---|---|
Long |
duration
Duration of the trip on this itinerary, in seconds.
|
Double |
elevationGained
How much elevation is gained, in total, over the course of the trip, in meters.
|
Double |
elevationLost
How much elevation is lost, in total, over the course of the trip, in meters.
|
Calendar |
endTime
Time that the trip arrives.
|
Fare |
fare
The cost of this trip
|
List<Leg> |
legs
A list of Legs.
|
Calendar |
startTime
Time that the trip departs.
|
boolean |
tooSloped
This itinerary has a greater slope than the user requested (but there are no possible
itineraries with a good slope).
|
Integer |
transfers
The number of transfers this trip has.
|
long |
transitTime
How much time is spent on transit, in seconds.
|
long |
waitingTime
How much time is spent waiting for transit to arrive, in seconds.
|
Double |
walkDistance
How far the user has to walk, in meters.
|
boolean |
walkLimitExceeded
Indicates that the walk limit distance has been exceeded for this itinerary when true.
|
long |
walkTime
How much time is spent walking, in seconds.
|
Constructor and Description |
---|
Itinerary() |
Modifier and Type | Method and Description |
---|---|
void |
addLeg(Leg leg)
adds leg to array list
|
void |
fixupDates(org.onebusaway.gtfs.model.calendar.CalendarServiceData service) |
void |
removeLeg(Leg leg)
remove the leg from the list of legs
|
public Long duration
public Calendar startTime
public Calendar endTime
public long walkTime
public long transitTime
public long waitingTime
public Double walkDistance
public boolean walkLimitExceeded
public Double elevationLost
public Double elevationGained
public Integer transfers
public Fare fare
public List<Leg> legs
public boolean tooSloped
public void addLeg(Leg leg)
leg
- public void removeLeg(Leg leg)
leg
- object to be removedpublic void fixupDates(org.onebusaway.gtfs.model.calendar.CalendarServiceData service)
Copyright © 2018. All rights reserved.