Import own distance matrix data
Posted: Thu Mar 23, 2023 3:00 pm
Hi there,
recently I've been asked:
Bernd
recently I've been asked:
The answer in the context of xServer2 (2.27 and above) is "yes": we invented a com.ptvgroup.xserver.xdima.ImportDistanceMatrixRequest which enables you to import yourCan we pass an external road network’s result the algorithm as the time and distance matrix input to the algorithm?
- Base locations for the starts and destinations
- DistanceMatrixContents (= traveltimes and distances)
- It is not possible to extend such a custom matrix. This might be subject to change.
- You can't import multi travel time dimas (travel time profiles)
- You can't import toll data
- The size of a custom dima could be limited (depends on server configuration)
- A party has neither a routing source nor an optimization algorithm: in this case xDima2 is used to craete one or more dima's on the service and then the xtour2 calls can refer to the data. This works pretty fine: it's been designed for such scenarios!
- Some players have their own optimization algorithms which considers specific needs of dedicated industries. These players create the distance matrix and export it (download it) on client side to provide it to their optimization infrastructure.
- Some players compute their own traveltimes and distances through some remote source, e.g. based on public transport schedules or a non-ptv routing engine. They want to consider these KPIs in a PTV based optimization because they don't have their own algorithms. These parties would have to use the IMPORT approach mentioned above.
Bernd