Input module¶
Reference to the schema.input.py module.
input
¶
Defines the input class.
Defaults
¶
DurationGroup
¶
MatrixTimeFrame
¶
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
¶
A set of alternate stops for the vehicles.
custom_data
class-attribute
instance-attribute
¶
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.
stop_groups
class-attribute
instance-attribute
¶
Groups of stops that must be part of the same route.