ETA inquiry

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.

ETA inquiry

Postby Jakub Skiba » Mon Mar 16, 2020 12:57 pm


One of our mutual clients (is using: PTV xServer internet with API Version 1: PTV TLN Europe City Map (HERE)) has recently reported to us a certain irregularity when mapping the route through the border crossing in the Swiss city of Koblenz.

There is a restriction on the delivery of goods on this passage in one lane. After consulting your helpdesk, we managed to determine that the border crossing is closed between 10:00 PM and 5:00 PM ( att. Koblenz crossing.jpg ). ... fahrverbot

It is therefore logical that it is not possible to calculate the route through this crossing if the ETA to this point is in between 10:00 PM and 5:00 PM. Based on the tests, I was able to determine the estimated time needed to cross the border crossing is 2h10m. I also instructed the client to take corrections into this type of situation by specifying the datetime of start time and destination time.

Here are the questions that I would need help answering in order to deepen my knowledge about the map's functioning. Alternatively, I would like to ask you to point me to those topics, if they had already been raised. Apologies if the questions are vague, its my first post.

1) Where can we get information that a given section of the route (in this case border crossing) is impassable at a given time. Is it possible to display this information?

2) What data/information is used to calculate ETA ?

3) Is there a difference between calculating the ETA to the end point and a point such as border crossing?

Best Regards,
Koblenz crossing.png
Jakub Skiba
Posts: 1
Joined: Mon Mar 02, 2020 1:38 pm

Re: ETA inquiry

Postby Bernd Welter » Tue Mar 17, 2020 5:00 pm

Hello Jakub,

that was a tricky one : usually our engine is used to consider constraints and if needed perform detours. What you want to have is more like "return the attributes in the response but do NOT match them with time dependency or truck attributes".

But one step after the other:
  • As you already mentioned: there's a specific time dependent restriction near the border: "loadType=1|driveType=0|opening=0:PTV_TruckAttributes([[(h0){h5m30}]+[(h22){h2}]])" In other words: the segment is closed between 10PM and 5:30AM.
  • This means the segment knows two conditions: (1) open between 05:30 and 22:00 or (2) closed otherwise.
  • Especially "Closed" means "speed=0": therefore even when you allow violations: a 0-speed segment is not used, you'd get a detour
  • Now if the dynamic router determines the time on segments with "given time is departure" this means you arrive either before the critical time (open with regular speed) or within the critical frame (detour)
  • Depending on how yo wan to use this info in your business logic you can ask for "attributes in the response without considering them" with the following snippet:
    xml code
    <?xml version="1.0" encoding="UTF-8"?>
    <Common coordinateFormat="OG_GEODECIMAL" language="en" majorVersion="1" minorVersion="0"/>
    <FeatureLayer majorVersion="1" minorVersion="0">
    <GlobalSettings enableTimeDependency="false" enableVehicleDependency="true"/>
    <Theme id="PTV_TruckAttributes" enabled="true" priorityLevel="0"/>
    <Theme id="PTV_TruckWaitingTimes" enabled="true" priorityLevel="0"/>
    <Routing majorVersion="2" minorVersion="0">
    <Course distanceTimeWeighting="80" enforceShortestRoute="false">
    <AdditionalDataRules enabled="true" layerName="">
    <Dimension height="55" heightAboveFrontAxle="80" length="1200" width="220"/>
  • Jakub.PNG
  • This is also part of this post

Best regards,

PS: this is also a good example for our xServer2 feature of time dependent feature layer visualization in a given TimeConsiderationMode... ;-) ... g%7C_____4
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
Posts: 1545
Joined: Mon Apr 14, 2014 10:28 am

Return to PTV xRouteServer