nextroute 1.9.0__tar.gz → 1.10.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nextroute might be problematic. Click here for more details.
- {nextroute-1.9.0/src/nextroute.egg-info → nextroute-1.10.0}/PKG-INFO +1 -1
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/__about__.py +1 -1
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/bin/nextroute.exe +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/schema/input.py +12 -2
- {nextroute-1.9.0 → nextroute-1.10.0/src/nextroute.egg-info}/PKG-INFO +1 -1
- {nextroute-1.9.0 → nextroute-1.10.0}/LICENSE +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/README.md +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/pyproject.toml +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/setup.cfg +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/setup.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/__init__.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/base_model.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/check/__init__.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/check/schema.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/options.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/schema/__init__.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/schema/location.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/schema/output.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/schema/statistics.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/schema/stop.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/schema/vehicle.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/solve.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute/version.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute.egg-info/SOURCES.txt +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute.egg-info/dependency_links.txt +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute.egg-info/requires.txt +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/nextroute.egg-info/top_level.txt +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/tests/schema/__init__.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/tests/schema/test_input.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/tests/schema/test_output.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/tests/solve_golden/__init__.py +0 -0
- {nextroute-1.9.0 → nextroute-1.10.0}/src/tests/solve_golden/main.py +0 -0
|
Binary file
|
|
@@ -30,8 +30,10 @@ class DurationGroup(BaseModel):
|
|
|
30
30
|
group: List[str]
|
|
31
31
|
"""Stop IDs contained in the group."""
|
|
32
32
|
|
|
33
|
+
|
|
33
34
|
class MatrixTimeFrame(BaseModel):
|
|
34
35
|
"""Represents a time-dependent duration matrix or scaling factor."""
|
|
36
|
+
|
|
35
37
|
start_time: datetime
|
|
36
38
|
"""Start time of the time frame."""
|
|
37
39
|
end_time: datetime
|
|
@@ -41,8 +43,10 @@ class MatrixTimeFrame(BaseModel):
|
|
|
41
43
|
scaling_factor: Optional[float] = None
|
|
42
44
|
"""Scaling factor for the time frame."""
|
|
43
45
|
|
|
46
|
+
|
|
44
47
|
class TimeDependentMatrix(BaseModel):
|
|
45
48
|
"""Represents time-dependent duration matrices."""
|
|
49
|
+
|
|
46
50
|
vehicle_ids: Optional[List[str]] = None
|
|
47
51
|
"""Vehicle IDs for which the duration matrix is defined."""
|
|
48
52
|
default_matrix: List[List[float]]
|
|
@@ -67,9 +71,15 @@ class Input(BaseModel):
|
|
|
67
71
|
"""Default values for vehicles and stops."""
|
|
68
72
|
distance_matrix: Optional[List[List[float]]] = None
|
|
69
73
|
"""Matrix of travel distances in meters between stops."""
|
|
70
|
-
|
|
74
|
+
duration_groups: Optional[List[DurationGroup]] = None
|
|
71
75
|
"""Duration in seconds added when approaching the group."""
|
|
72
|
-
duration_matrix: Optional[
|
|
76
|
+
duration_matrix: Optional[
|
|
77
|
+
Union[
|
|
78
|
+
List[List[float]],
|
|
79
|
+
TimeDependentMatrix,
|
|
80
|
+
List[TimeDependentMatrix],
|
|
81
|
+
]
|
|
82
|
+
] = None
|
|
73
83
|
"""Matrix of travel durations in seconds between stops as a single matrix or duration matrices."""
|
|
74
84
|
options: Optional[Any] = None
|
|
75
85
|
"""Arbitrary options."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|