Search found 8 matches

by YellowFoxNP
Thu Nov 30, 2023 9:03 am
Forum: Data and content
Topic: Comparison of world map with europe city map
Replies: 2
Views: 7822

Comparison of world map with europe city map

Hi Bernd,

what are the differences between the Europe City map (Here) and the World Map (Here) in terms of
  • performance
  • system requirements
  • and coverage?
For example, are the truck attributes for Germany the same in the Europe and World map?

Best regards

Nico (YellowFox)
by YellowFoxNP
Thu Nov 30, 2023 8:58 am
Forum: PTV xRouteServer
Topic: Handling of LowEmissionZones (xRoute2)
Replies: 1
Views: 5100

Re: Handling of LowEmissionZones (xRoute2)

Hi Bernd,

what do I have to do so that the xServer sets the violated flag to true for the forbidden segments?

Best regards

Nico (YellowFox)
by YellowFoxNP
Fri May 05, 2023 11:02 am
Forum: PTV xRouteServer
Topic: Toll Distance Calculation
Replies: 5
Views: 2936

Re: Toll Distance Calculation

Thank you, i changed my code to get the distance via segments and it works fine for me. foreach( $segments AS $segment ) { if( isset( $segment[ 'attributes' ][ 'roadAttributes' ][ 'toll' ] , $segment[ 'attributes' ][ 'descriptors' ][ 'country' ] ) ) { $country = $segment[ 'attributes' ][ 'descriptor...
by YellowFoxNP
Fri May 05, 2023 5:44 am
Forum: PTV xRouteServer
Topic: Toll Distance Calculation
Replies: 5
Views: 2936

Toll Distance Calculation

Hi there, i have a problem to calculate the toll distance per country. I get toll events in france from type "PASS" in the xserver response. These events don't have a relatedEventIndex or a "EXIT" event. So i don't have the chance to calculate the distance. Here is my code snippe...
by YellowFoxNP
Tue Dec 03, 2019 7:50 am
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: [JS - Leaflet] Convert GDF Time Domain to a readable value
Replies: 5
Views: 17392

Re: [JS - Leaflet] Convert GDF Time Domain to a readable value

Hi here is my implementation. It's not complete and not bulletproof at the moment but i hope it's a good start for you: function parseTimeDomain( input ) { var tmp = input.split( /[()]+/ ); var result = {}; if( tmp.length >= 3 ) { result.startDate = parseDateByGDF( tmp[1] ); if( tmp[2].indexOf( '{' ...
by YellowFoxNP
Wed Nov 27, 2019 1:06 pm
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: xServer 2 Leaflet Customized Popup Content
Replies: 5
Views: 10684

Re: xServer 2 Leaflet Customized Popup Content

What do I have to do to extend the leaflet-xserver.js so, that also the Nontiledlayer implementation can be requested with contentType=JSON to get the click feature
by YellowFoxNP
Fri Nov 08, 2019 7:17 pm
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: xServer 2 Leaflet Customized Popup Content
Replies: 5
Views: 10684

Re: xServer 2 Leaflet Customized Popup Content

Perfect. That's exactly what I had in mind. Thank you very much.
by YellowFoxNP
Fri Nov 08, 2019 9:53 am
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: xServer 2 Leaflet Customized Popup Content
Replies: 5
Views: 10684

xServer 2 Leaflet Customized Popup Content

Hi, how can I customize the popup content if I click on a TrafficIncident or TruckAttribute. I found in the leaflet-xserver.js the buildDescription function and I wanted to overwrite it. I tried: var map = new L.Map('map', { center: [49.595, 6.115], zoom: 11 }); L.TileLayer.XServer.buildDescription ...