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.

Displaying route with toll sections (without recalculating)

Postby julonska » Tue Aug 14, 2018 3:40 pm

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
julonska
 
Posts: 9
Joined: Thu Aug 09, 2018 1:37 pm

Re: Displaying route with toll sections (without recalculati

Postby Bernd Welter » Wed Aug 15, 2018 7:08 am

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
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1623
Joined: Mon Apr 14, 2014 10:28 am

Re: Displaying route with toll sections (without recalculati

Postby LNM_PTV » Fri Aug 17, 2018 11:45 am

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


Return to PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)

cron