You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a property or method to the main Route struct to retrieve congestion segments.
Each adapter would be responsible for extracting and mapping its specific congestion data to a common format when converting from the adapter-specific route to the main Route.
Pros:
Keeps the congestion data close to the route data it belongs to.
Provides a unified interface for accessing congestion data across different adapters.
Cons:
Slightly increases the complexity of the core Route struct.
This approach involves:
Pros:
Cons:
Proposed slution:
In
./ferrostar/src/models.rs
In
./ferrostar/src/routing_adapters/osrm/mod.rs
The text was updated successfully, but these errors were encountered: