Page 1 of 1
truck attributes - swedish road classes BK1, BK2, BK3
Posted: Tue Jan 23, 2018 7:05 am
by ulai
hi
we intend to use here map with a Swedish customer. In Sweden we are faced with three different types of road classifications BK1, BK2 and BK3. These weight classes are calculated in a slightly strange manner (weight, number of axles, axle type). In cities e.g. BK1 is not allowed. Can you please let us know, whether this is supported and which parameters we have to give into the route server to get the proper result back?
thks - mike
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Tue Jan 23, 2018 3:57 pm
by Bernd Welter
Hello Maik,
I can't answer this from scratch but therefore forwarded it to our DATA experts.
The challenge is probably based on whether we have these attributes in our data or not.
Best regards,
Bernd
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Wed Jan 24, 2018 8:10 am
by Bernd Welter
Here's an update (Thanks, Erich!):
currently we do not have the data or a corresponding feature/parameter.
Both our major providers are evaluating concepts for these topics:
Looks like HERE develops a more promising approach for the data which seems to be ready soon.
Our data experts wait for the data which is then supposed to be integrated into maps via FeatureLayer technology.
From what our experts know there will be some updates in the definition of the BK in spring as well.
Best regards,
Bernd
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Mon Jan 29, 2018 1:27 pm
by ulai
Hi Bernd
thks for your - as usual

- fast reply. It is a pity that the map providers can't handle this. I know how it is with giving promises... but do you think you get a more precise reply by here, by when we can expect it?
thks - mike
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Tue Jan 30, 2018 4:12 pm
by Bernd Welter
Hi,
there is no concrete date available - we know the topic, we depend on others.
That's all I can mention so far.
Sorry, I would like to be more precise but I dontT have access to more details.
Best regards,
Bernd
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Tue Feb 20, 2018 11:41 am
by ulai
Hi Bernd
have to come back on this. My Swedish friends are telling me that PTV can handle at BK1 and BK2...
http://www.ptvgroup.se/eng/digitala_kartor.html. Not sure whether this is of any help.
However, I guess already today you can work with different street classes in Sweden. Can you tell me, which class is how interpreted? I know, this will not solve the BK1/2/3 story, since this is more complex. But probably it is already good enough to start, if we know how the street classes are interpreted. If we set-up the vehicles arrordingly, we might get far already.
thks for your help!
rgds - mike
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Mon Apr 19, 2021 11:29 am
by t.mateit
Hello together,
is there any update on this topic? I have to start setting up the system of our SWE customer and need to know what to do.
Thanks in advance
Thomas
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Mon Apr 19, 2021 2:01 pm
by Bernd Welter
Hell Mike,
the web page you sent us in the last post is our old website. This website normally redirects towards ptvgroup.com. You must have found a sub page via google.
Yes we can handle BK classes also with xServer. Check the feature layer PTV_PreferredRoutes (HERE: available in 2020.2H / TOMTOM: not available so far).
These BK classes are unique for Sweden and they define restrictions for heavy vehicles. possible in xRoute or to visualize them in xMap.
The followiong screenshot was made with the
Showcase:

- PreferredRoutes in the Gothenburg region
And here's a screenshot from my local client

- Sample route considers PTV_PreferredRoutes. I aggregated the segments via segment.segmentAttributes. As you can see almost the whole route is based on BK1, the rest is BK_2.
Best regards,
Bernd
PS: Thanks to Mikkael and Thorsten for their contribution!
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Tue Apr 20, 2021 2:14 pm
by t.mateit
Hi Bernd,
thanks for your swift answer.
When we want to use the feature layer "PTV_PreferredRoutes", do we have to enable it just via xRoute config. file or is this to be "activated" via the interface?
BR
Thomas
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Tue Apr 20, 2021 7:53 pm
by Bernd Welter
this needs three steps:
- the feature layer data is required in the server's map folder
- you need a license that allows you to use the PTV_PreferredRoutes
- you need to activate that layer in the mapping / routing requests
Does this answer the question?
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Wed Apr 21, 2021 7:22 am
by t.mateit
Hi Bernd,
this is OK for now.
2 more question came up from the customer:
1. Is it possible to show the different "preferred route types" (for SWE BK1 - 3) in different colors on the map?
2. In case the feature is not activated - as we use it today - the routing basically ignores these categories completely, correct? Weight restrictions are basically ignored for SWE.
BR
Thomas
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Tue Sep 14, 2021 7:52 am
by Bernd Welter
Sorry for the late answer.
It is indeed possible to represent with different colors the different BK types. See for instance the attached request.

- * BK1 in green
* BK2 in blue
* BK3 in black
* BK4 in cyan
Code: Select all
{
"$type": "MapRequest",
"storedProfile": "silkysand",
"requestProfile": {
"featureLayerProfile": {
"themes": [
{
"id": "PTV_PreferredRoutes",
"enabled": true
}
]
},
"renderingProfile": {
"countryStyles": [
{
"countryCodes": "*",
"featureLayerThemes": [
{
"id": "PTV_PreferredRoutes",
"styles": [
{
"displayClass": "NetworkType",
"ranges": [
{
"from": "34",
"to": "34"
}
],
"geometries": [
{
"displayRange": "1-23",
"renderLevel": {
"renderOffset": "+11"
},
"stroke": {
"color": "#00FF00",
"opacity": "100",
"width": "200%"
}
}
]
},
{
"displayClass": "NetworkType",
"ranges": [
{
"from": "35",
"to": "35"
}
],
"geometries": [
{
"displayRange": "1-23",
"renderLevel": {
"renderOffset": "+11"
},
"stroke": {
"color": "#0000FF",
"opacity": "100",
"width": "200%"
}
}
]
},
{
"displayClass": "NetworkType",
"ranges": [
{
"from": "36",
"to": "36"
}
],
"geometries": [
{
"displayRange": "1-23",
"renderLevel": {
"renderOffset": "+11"
},
"stroke": {
"color": "#000000",
"opacity": "100",
"width": "200%"
}
}
]
},
{
"displayClass": "NetworkType",
"ranges": [
{
"from": "37",
"to": "37"
}
],
"geometries": [
{
"displayRange": "1-23",
"renderLevel": {
"renderOffset": "+11"
},
"stroke": {
"color": "#00FFFF",
"opacity": "100",
"width": "200%"
}
}
]
}
]
}
]
}
]
}
},
"coordinateFormat": "EPSG:4326",
"mapSection": {
"$type": "MapSectionByTileKey",
"zoomLevel": 10,
"x": 558,
"y": 315
},
"imageOptions": {
"format": "PNG",
"height": 2000,
"width": 2000
},
"resultFields": {
"image": true
}
}
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Wed Jan 05, 2022 10:16 am
by Bernd Welter
Here's some more valuable info and
a fancy video:
The swedish network classes are described as follows in the
documentation of the prefered routes feature layer:

- Screenshot from the docu
Unfortunately the rendering profiles do not expect these labels such as BK_1 but specific integers and of course the next question is: where to find the matching between such a label and the integer?
Technically spoken the definition of these values is given in the so-called property connector files within the map. Here's an example from my local installation:

- Excerpt from my local propertyConnectorV014.xml (in the map folder)

I can't guarantee that the integer values are stable - they might change from map version to map version!
Best regards,
Bernd
Re: truck attributes - swedish road classes BK1, BK2, BK3
Posted: Wed Jul 20, 2022 2:14 pm
by Bernd Welter
Here's a short update... the attached screenshots show the coverage of PTV_TruckAttributes and PTV_PreferredRoutes in the 2022.2 maps of TOMTOM and HERE in the region of Gothenburg/Sweden.
Here are the numbers for the visualized areas (not for the map as a whole!)
| Provider | PreferredRoutes | TruckAttributes |
|---|
| 2022.2T | 0 | 16'826 |
| 2022.2H | 17'172 | 10'005 |
So TOMTOM provides the "preferred" data in the "truck attributes":
While you are able to specify the PTV_PreferredRoutes (plus the road classes such as Swedish BK_1, ...) with a proper malus in the HERE map you need to choose a different path in the TOMTOM world: make sure that you request PTV_TruckAttributes together with proper vehicle settings.
Bernd