truck attributes - swedish road classes BK1, BK2, BK3

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
ulai
Posts: 6
Joined: Thu Aug 11, 2016 12:29 am
Location: Switzerland
Contact:

truck attributes - swedish road classes BK1, BK2, BK3

Post 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
User avatar
Bernd Welter
Site Admin
Posts: 3091
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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
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:
Image
User avatar
Bernd Welter
Site Admin
Posts: 3091
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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
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:
Image
ulai
Posts: 6
Joined: Thu Aug 11, 2016 12:29 am
Location: Switzerland
Contact:

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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
User avatar
Bernd Welter
Site Admin
Posts: 3091
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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
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:
Image
ulai
Posts: 6
Joined: Thu Aug 11, 2016 12:29 am
Location: Switzerland
Contact:

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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
t.mateit
Posts: 13
Joined: Fri Oct 30, 2015 3:50 pm

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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
User avatar
Bernd Welter
Site Admin
Posts: 3091
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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
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.
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!
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:
Image
t.mateit
Posts: 13
Joined: Fri Oct 30, 2015 3:50 pm

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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
User avatar
Bernd Welter
Site Admin
Posts: 3091
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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?
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:
Image
t.mateit
Posts: 13
Joined: Fri Oct 30, 2015 3:50 pm

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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
User avatar
Bernd Welter
Site Admin
Posts: 3091
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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<br />* BK2 in blue<br />* BK3 in black<br />* BK4 in cyan
* 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
  }
}
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:
Image
User avatar
Bernd Welter
Site Admin
Posts: 3091
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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
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)
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
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:
Image
User avatar
Bernd Welter
Site Admin
Posts: 3091
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: truck attributes - swedish road classes BK1, BK2, BK3

Post 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!)
ProviderPreferredRoutesTruckAttributes
2022.2T016'826
2022.2H17'17210'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
Attachments
HERE<br />PTV_TruckATtributes 2022.2H
HERE
PTV_TruckATtributes 2022.2H
HERE<br />PTV_PreferredRoutes 2022.2H
HERE
PTV_PreferredRoutes 2022.2H
TOMTOM <br />PTV_PreferredRoutes 2022.2T
TOMTOM
PTV_PreferredRoutes 2022.2T
TOMTOM <br />PTV_TruckAttributes 2022.2T
TOMTOM
PTV_TruckAttributes 2022.2T
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:
Image
Post Reply