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...
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...
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( '{' ...
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
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 ...