I use xRoute to calculate the route in Poland. The route is then displayed using the map. In some situations, the calculated route runs through roads where transit is prohibited, for example Warsaw (see attachment).
Current regulations say that entry to Warsaw is possible only for vehicles that make deliveries in Warsaw. Other vehicles must use different routes.
What should be done to take this scenario into account?
Below is an example query:
Code: Select all
{"waypoints":[{"$type":"OnRoadWaypoint","location":{"coordinate":{"x":21.184751,"y":51.989141}}},{"$type":"OnRoadWaypoint","location":{"coordinate":{"x":21.184751,"y":51.989141}}},{"$type":"OnRoadWaypoint","location":{"coordinate":{"x":19.763054,"y":52.736877}}},{"$type":"OnRoadWaypoint","location":{"coordinate":{"x":19.474281,"y":52.429691}}},{"$type":"OnRoadWaypoint","location":{"coordinate":{"x":19.474281,"y":52.429691}}},{"$type":"OnRoadWaypoint","location":{"coordinate":{"x":19.37035,"y":52.438217}}},{"$type":"OnRoadWaypoint","location":{"coordinate":{"x":19.934122,"y":52.09812}}},{"$type":"OnRoadWaypoint","location":{"coordinate":{"x":21.184751,"y":51.989141}}},{"$type":"OnRoadWaypoint","location":{"coordinate":{"x":21.184751,"y":51.989141}}},{"$type":"OnRoadWaypoint","location":{"coordinate":{"x":21.184751,"y":51.989141}}}],"resultFields":{"polyline":true},"routeOptions":{"polylineOptions":{"elevations":true}},"requestProfile":{"routingProfile":{"searchSpace":{"heuristicAggressiveness":0},"course":{"violations":{"enabled":false}}},"featureLayerProfile":{"themes":[{"enabled":true,"id":"PTV_TruckAttributes"}]},"vehicleProfile":{"weight":{"emptyWeight":36000,"loadWeight":0,"totalPermittedWeight":36000},"legalCondition":{"isDelivery":false,"isEmergency":false},"dimensions":{"height":400,"length":1875,"width":254.99999999999997},"load":{"loadType":"GOODS"},"axle":{"numberOfAxles":"4"},"engine":{"emissionStandardEU":"EURO_5","engineType":"COMBUSTION","fuelType":"DIESEL"}}}}
Szymon