Visualization of Traffic-Flows

This forum covers all questions dealing with visualization of data within the native PTV xMap interface. Please remember that additional plugins such as AJAX or Leaflet may be handeled in other forums.
Post Reply
User avatar
Max Beermann
Posts: 68
Joined: Tue Oct 30, 2018 7:36 am

Visualization of Traffic-Flows

Post by Max Beermann »

Hey everyone,

I hope you are fine.

Is it possible to visualize traffic flows?

Example:
I have 1.000 transport-orders.
Each transport-order hast 1 Loading-Station and 1 Unloading-Station.
For each Station, I have the geo-coordinates.

Is there an easy way to visualize it like in the following picture (s. Link)?

https://www.zukunft-mobilitaet.net/wp-c ... aneiro.jpg

Thank you very much in advance
Max Beermann
Max Beermann
Development Manager
WHEELS Logistics
User avatar
Bernd Welter
Site Admin
Posts: 2574
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Visualization of Traffic-Flows

Post by Bernd Welter »

Hello Max,

let's distinguish between different sources of "visual data":
  • geographic core data such as road network, town areas/labels, forests, ... such data is provided by the mapping engine, e.g. from PTV via tiled layers
  • geographic business data such as "your customers positions (x,y)", "pickup-delivery relations or routing geometries (polygons)" or a "subsidiaries area of responsibility (polyline)". This data is put on top of a map via stacked layer technologies
Now the way how to put the layers on top of each other depends on the mapping framework in use.
You can definetly paint such fancy data on top of a PTV map with frameworks such as leaflet. But the answer to your initial question is supposed to be found in the framework - not within PTV.

(Spatial) Frameworks we use / recommend: Does this answer your question? In your case you might have to get back to your integrator (Toralf ;-) )

Best regards,
Bernd

PS: Here are some examples I found on our own pages (list will be extended). Maybe we should set up a gallery ;-)
And by the way: the tilted / rotated background maps are provided by the brand new PTV Vector Maps!
Attachments
based on https://deck.gl/  +  PTV Vectormaps
based on https://deck.gl/ + PTV Vectormaps
MicrosoftTeams-image (3).png
MicrosoftTeams-image (2).png
PTV_Vehicle_Info_Cologne.jpg
PTV_Public_Transport_Cologne.jpg
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:
User avatar
Oliver Heilig
Posts: 154
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Visualization of Traffic-Flows

Post by Oliver Heilig »

Hi Max,

technically you have three components for these visualizations: A vizualization libray, a map control and a basemap tile provider. You can use nearly any combination, e.g.

(deckgl/d3) - (maplibre/leaflet) - (VectorMaps/RasterMaps)

I adapted some samples from https://deck.gl/examples/ visualizing arcs and lines to PTV developer maps.

https://jsfiddle.net/oliverheilig/psjq4neb/
https://jsfiddle.net/oliverheilig/u9fn15t0/

Here the stack is deckgl-maplibre-VectorMaps, but you could also use maplibre with raster maps and xMapServer as shown here

https://ptv-logistics.github.io/xserverjs/#boilerplate

A prerequisite of all these solutions is a web browser. If you need to include this into a desktop application, you could use some WebView approach. Here is a sample using "Chromium Embedded Framework (CEF)" in a WinForms application.

https://github.com/oliverheilig/CefMap/

So this is the state-of-the-art technology. I hope I didn't confuse you too much.

Oli
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
User avatar
Max Beermann
Posts: 68
Joined: Tue Oct 30, 2018 7:36 am

Re: Visualization of Traffic-Flows

Post by Max Beermann »

Good Morning Bernd & Oli,

thank you very much for your help!
This is just what I needed (and more).
So cool:)

Best regards
Max
Max Beermann
Development Manager
WHEELS Logistics
Post Reply