Input module¶
Reference to the schema.input.py module.
input
¶
Defines the input class.
Defaults
¶
DurationGroup
¶
MatrixTimeFrame
¶
Bases: BaseModel
Represents a time-dependent duration matrix or scaling factor.
matrix
class-attribute
instance-attribute
¶
Duration matrix for the time frame.
TimeDependentMatrix
¶
Bases: BaseModel
Represents time-dependent duration matrices.
vehicle_ids
class-attribute
instance-attribute
¶
Vehicle IDs for which the duration matrix is defined.
matrix_time_frames
class-attribute
instance-attribute
¶
matrix_time_frames: list[MatrixTimeFrame] | None = None
Time-dependent duration matrices.
Input
¶
Bases: BaseModel
Input schema for Nextroute.
alternate_stops
class-attribute
instance-attribute
¶
alternate_stops: list[AlternateStop] | None = None
A set of alternate stops for the vehicles.
custom_data
class-attribute
instance-attribute
¶
custom_data: Any | None = None
Arbitrary data associated with the input.
defaults
class-attribute
instance-attribute
¶
defaults: Defaults | None = None
Default values for vehicles and stops.
distance_matrix
class-attribute
instance-attribute
¶
Matrix of travel distances in meters between stops.
duration_groups
class-attribute
instance-attribute
¶
duration_groups: list[DurationGroup] | None = None
Duration in seconds added when approaching the group.
duration_matrix
class-attribute
instance-attribute
¶
duration_matrix: (
list[list[float]]
| TimeDependentMatrix
| list[TimeDependentMatrix]
| None
) = None
Matrix of travel durations in seconds between stops as a single matrix or duration matrices.