I've been asked how to deal with traffic construction sites that are not part of our map data, e.g. with the famous "Schiersteiner Brücke" https://de.wikipedia.org/wiki/Schiersteiner_Br%C3%BCcke that links Wiesbaden-Schierstein with Mainz-Mombach.
PS: Please feel free to add further objects (official tunnel names, bridges, ...) in replies so we can make them searcheable
Well, there are several potrential strategies available to deal with such issues. A quick forum posting can't replace the documentation but maybe I can give you some hints and you can evaluate whether one of them fits your current challenge.
- Approach #1 (quick and dirty): use an ExceptionPath object to malify the bridge and identify it by the street name:
This approach requires you to identify the object within the request which works fine for this bridge because of the street name. It might be more difficult to reference other objects,
Code: Select all
<ArrayOfExceptionPath_3> <ExceptionPath absTimeMalus="0" binaryPathDesc="" extSegments="" relMalus="2501" street="Schiersteiner Br?xmlns="http://xroute.xserver.ptvag.com"> <wrappedNodes xsi:nil="true" /> <polyline xsi:nil="true" /> </ExceptionPath> </ArrayOfExceptionPath_3>
- Approach #1b: precalculate a BinaryPathDescription of a street section which you want to block (e.g. if you want to block just a subsection of a specific highway but not the whole A123). Just use the BinaryPath instead of the StreetName, but still work with ExceptionPath and RelMalus=2501.
- Approach #2 (less quick, much more effort): use the RoadEditor of Map&Guide Desktop: block the street in both directions and create a binary truckattributes file which can be used in the xRoute:
Code: Select all
<RoutingOption parameter="ROADEDITOR_LAYERNAME" value="SchiersteinerBr?xmlns="http://xroute.xserver.ptvag.com" /> <RoutingOption parameter="ENABLE_ROADEDITOR" value="True" xmlns="http://xroute.xserver.ptvag.com" />
- For those who have proper access to a direct RoadEditor database you can also use the database approach.
Best regards Bernd
PS: mercator coordinates of sample route:
914068/6447331 => 912599/6443504