Detour detection mechanism in the wiki
Should the detour detection mechanism be published in the wiki? I couldn't find it, though it has been in the Global Champs forum for quite a long time, and has also appeared in the public forums. Is there a reason why it should not be?
The "detour detection mechanism" tries to prevent route options that exit major roads into minor roads (ramps, streets etc.), in order to save negligible driving time.
The idea is that drivers will prefer to remain on the major road, even if it is just a bit longer or slower.
The following scenarios are considered as a detour, and will not be shown as a possible route alternative:
- If the start point of the detour and end point of the detour have the same street name (only main street name - not alternative name)
- Detour must be more than 1 segment long (between 2 segments with the same name).
The mechanism handles 2 types of detours with slightly different properties:
- Highways:
- Road types: Freeway, Major Highway - it's a detour only if the detour started out of these types, got back to these types, and in the middle the types are different.
- Bypass length is 5km - under this threshold, the route is considered to be a detour and will not be shown as a possible route. If it is longer then 5km, it will be considered as a valid new route - and there for will be shown as a possible route.
- Minor Highway:
- Road types: Minor Highway - same role here, it's a detour only if the detour started out of these types, got back to these types, and in the middle the types are different.
- Bypass length is 500m - again, same role here as well, under this threshold, the route is considered to be a detour and will not be shown as a possible route. If it is longer then 500m, it will be considered as a valid new route - and there for will be shown as a possible route.
Re: Detour detection mechanism in the wiki