Mountain passes

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
mrczeg
Posts: 11
Joined: Tue Oct 17, 2017 9:11 am

Mountain passes

Post by mrczeg »

Hello,
Map and guide allow on set uses of "Mountain passes" in road types section. I want implement this option in ours app. I cant find any example of that. Can you show me how I can sent that information to ptv route?
Best regards
Marcin Żegunia
Joost
Posts: 307
Joined: Fri Apr 25, 2014 1:46 pm

Re: Mountain passes

Post by Joost »

That is the attribute
  • Routing / Course / BasicDataRules / Blockings / @blockedInWinterMalus
in the xServer profile. For information on how to work with profiles, have look at xServer1.Technical Concepts.AboutProfiles
Joost Claessen
Senior Technical Consultant
PTV Benelux
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Mountain passes

Post by Bernd Welter »

Route from Gadmen to Färningen (tomtom map). <br />LEFT: blockedInWinterMalus =0<br />RIGHT: blockedInWinterMalus=2600
Route from Gadmen to Färningen (tomtom map).
LEFT: blockedInWinterMalus =0
RIGHT: blockedInWinterMalus=2600
Snippet:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<Profile>
	<Routing majorVersion="2" minorVersion="0">
		<Course>
			<BasicDataRules>
				<Blockings blockedInWinterMalus="2501"/>
			</BasicDataRules>
		</Course>
	</Routing>
</Profile>
:idea: For xServer2 check this article.
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: Mountain passes

Post by Bernd Welter »

Susten Pass from CH-Innertkirchen to CH-Wassen (wikipedia)
Attachments
HERE 2022.2<br />left: blockedInWinter=0<br />right: blockedInWinter=2501
HERE 2022.2
left: blockedInWinter=0
right: blockedInWinter=2501
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: Mountain passes

Post by Bernd Welter »

Albula Pass (wikipedia)
from CH-Thusis to CH-La Punt.
2022.2H<br />left: blockedInWinter=0<br />right: blockedInWinter=2501
2022.2H
left: blockedInWinter=0
right: blockedInWinter=2501
elevations
elevations
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: Mountain passes

Post by Bernd Welter »

Here's a quick update for xServer2 users:
the winter blockings seem to be available as regular truck attributes (FeatureLayer PTV_TruckAttributes) with a time dependency, e.g. from 1.11.-30.4.:
Biweekly sample... routes started at 1.1.2022, 14.1.2022, 28.1.2022.... In this case the routes take a detour according to the following TruckAttribute (2023.1H map):<br /><br />PTV_TruckAttributes=timeDomain=[[(M11){M2}]+[(M1){M4}]];relevantByTime=true;loadType=GOODS;driveType=MOTOR_VEHICLE;opening=0PTV_TruckAttributes=driveType=MOTOR_VEHICLE;maxWeight=11000
Biweekly sample... routes started at 1.1.2022, 14.1.2022, 28.1.2022.... In this case the routes take a detour according to the following TruckAttribute (2023.1H map):

PTV_TruckAttributes=timeDomain=[[(M11){M2}]+[(M1){M4}]];relevantByTime=true;loadType=GOODS;driveType=MOTOR_VEHICLE;opening=0PTV_TruckAttributes=driveType=MOTOR_VEHICLE;maxWeight=11000
2023.1H
2023.1H
:!: Attention: different pass - different time constraint:
Blocked from 16.11 - 14.04. (ok, a bit challenging to read...)
Blocked from 16.11 - 14.04. (ok, a bit challenging to read...)
From CHE-Tiefencastel to CHE-Silvaplana
From CHE-Tiefencastel to CHE-Silvaplana
:idea: So there's no "blockedInWinter" flag but a time dependent blocking/opening.

Thanks to Max for the update,
Bernrd
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