Here's a quick sample about how to consider the greenzones during a routing with xRoute1.
- For both routings the GREENZONES apply a malus of 2501 (strictly forbidden).
Waypoints: "71735 Hochdorf an der Enz" --> "7133* Waiblingen"
Left: Vehicle has a green vignette - passage is allowed
Right: vehicle has a RED vignette, therefore it must perform a detour
I see two major approaches:
- Use the explizit routing options
- AVOID_LOW_EMISSION_ZONES (e.g. 0 / 25001 / 2501) and
- LOW_EMISSION_ZONE_TYPE (e.g. GREEN / RED)
- Apply the same parameters via XML Snippet:
Important to know: The snippet approach is also valid for the DIMA driven modules (xDima, xTour, xCluster) where the API does not offer explizit options.
Best regards,
Bernd