For delivery-only roads general traffic is restricted, but delivery vehicles are allowed to deliver goods to local businesses or residents. A typical example is a pedestrian zone. As we consider a malus on these roads or zones, shortcuts and through traffic are avoided, instead they are only used when a waypoint located there is reached or left.
Usually, our predefined vehicle profiles are delivery vehicles as the focus is on logistics companies. That means that you get no violation using a delivery-only road. In the new version of the PTV Developer Routing API V1.30.0 we now provide events when entering or exiting delivery-only roads to be always informed about passing them.
To get this new event type in the response, just request in the parameter ‘results’ the new value ‘DELIVERY_ONLY_EVENTS’. Moreover, to mark the used delivery-only roads on a map, you can request the new value ‘DELIVERY_ONLY_EVENTS_POLYLINE’.
To play around with all the event types have a look at the brand new code sample for events. Easiest thing to do is setting one waypoint in a pedestrian zone to get delivery-only events. Please note that some delivery-only roads do not restrict all vehicles.
To keep yourself updated about releases and news you can use the subscribe button at the top of the page. If you got any question do not hesitate to get in contact.