Delivery Flag in routing

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Delivery Flag in routing

Post by Bernd Welter »

Hi there,

these days I was asked by a customer why his route drives straight through a pedestrian zone.
Besides some more or less regular attributes the routing profile contains the following part:

Code: Select all

<Vehicle>
            <Legal>
                <LegalCondition isAuthorized="true" isDelivery="true" isEmergency="true"/>
            </Legal>
        </Vehicle>
By setting the flags for isDelivery==TRUE the vehicle is allowed to drive to / through such an area.
LEFT: complex detour, furthermore the pyramid waypoint isn't reached. The real trip starts in a small distance from the pyramid.<br />RIGHT: the vehicle is allowed to use the delivery flag and therefore the linking attaches the route almost direct to the pyramid.
LEFT: complex detour, furthermore the pyramid waypoint isn't reached. The real trip starts in a small distance from the pyramid.
RIGHT: the vehicle is allowed to use the delivery flag and therefore the linking attaches the route almost direct to the pyramid.
So for this customer we have to check whether he really wants the parameters like that.

Best regards,
Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Delivery Flag in routing

Post by Bernd Welter »

Here's some more info dealing with the topic:

There is a technical difference between Delivery and Authorized:
- Delivery is an attribute of SEGMENTS (e.g. segments in a pedestrian zone or "restaurant in the far off which isn't reacheable for regular cars but requires to be deliverey with goods")
- Authorized is related to NODES, e.g. a barrier or gate, most times "turning restrictions"
- Emergency is an attribute applied to streets that are reserved for special purposes in the context of Emergency, e.g. illegal highway approaches used by police or ambulance or fire brigade
We will only use isDelivery and isEmergency in xServer 2, there won’t be a separation of delivery and authorized anymore.

In some cases the attributes within the maps has “room for improvement” ;-)
Check this post of the solution director:
http://devblog.ptvgroup.com/2014/01/10/ ... -vehicles/

Best regards,
Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Delivery Flag in routing

Post by Bernd Welter »

And here is an example for the isAuthorized flag:
left track: isAuthorized==TRUE. Track leads straigth through the blocked road.<br />right track: isAuthorized==FALSE. Detour necessary because of the blocked road.
left track: isAuthorized==TRUE. Track leads straigth through the blocked road.
right track: isAuthorized==FALSE. Detour necessary because of the blocked road.

Code: Select all

<VehicleSpecific>
	<AuthorizedVehicles turningBanCost="0"/>
	<DeliveryVehicles segmentMalus="0"/>
	<EmergencyVehicles segmentMalus="0" turningBanCost="0"/>
	<ProjectSpecificVehicles blockedSegmentMalus="2501" openSegmentMalus="0" turningBanCost="0"/>
</VehicleSpecific>
Best regards
Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply