Page 1 of 1

Displaying route with toll sections (without recalculating)

Posted: Tue Aug 14, 2018 3:40 pm
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

Re: Displaying route with toll sections (without recalculati

Posted: Wed Aug 15, 2018 7:08 am
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

Re: Displaying route with toll sections (without recalculati

Posted: Fri Aug 17, 2018 11:45 am
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