After incorporating realtime traffic data, the routing algorithm seems to prioritize the trip duration even if that involves awkward maneuvers like getting off the highway and getting right back on as shown below. Even more drastic maneuvers are seen during rush hours.
Below is Google’s route of the same segment, which provides a route to stay on the highway despite the traffic, which seems more natural.
The potential solution I’m thinking of is twofolds:
- Create a custom model to lower the weight of highways.
- Increase the penalty for exiting the highways.
First, are these good solutions? I would like to know if I’m heading in the right direction. And, second, how to detect highway exits?