Displaying route with toll sections (without recalculating)

This forum deals with any kind of web based client technology, whether it is the well known java script based Ajax servlet or the upcoming approaches such as Leaflet, OpenLayers and so on.
Post Reply
julonska
Posts: 9
Joined: Thu Aug 09, 2018 1:37 pm

Displaying route with toll sections (without recalculating)

Post by julonska »

Hello,

today I have tried to display a route based on a LineString array with xMap2. Since this worked fine, I tried to add a layer with the toll information about this route, unfortunately unsuccesful.

Is there any possibility to reconstruct a route which was calculated in the past?
Which data is needed to get a result?

Further, using the JavaScript API and Leaflet:
Is there any possibility to use the WKB instead of a LineString?

Many thanks!

Julian Ulonska
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Displaying route with toll sections (without recalculati

Post by Bernd Welter »

Hello Julian,

let's split the topics because some aspects touch the web clients, others don't.

@Lars: could you please take care of the "Is there any possibility to use the WKB instead of a LineString?" topic?

"Is there any possibility to reconstruct a route which was calculated in the past?
Which data is needed to get a result?
" : I will take care on a one2one base...

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:
LNM_PTV
Posts: 14
Joined: Mon Apr 18, 2016 12:25 pm

Re: Displaying route with toll sections (without recalculati

Post by LNM_PTV »

Hello,

the wkb format is not directly supported by the leaflet format.
Before using a wkb format you have to transform it, for exmaple into geoJson. It might be the case, that there are already existing js libraries for that Transformation..
In order to store routes, you have to save the geometry.
If you want to display toll Information related data, you have to save them as well.

Best regards,
Lars
Lars Moritz
Technical Consultant
PTV GROUP, Germany
Post Reply