Hello,
I'd like to know if there is an option to send one request and to receivce different result-routes based upon different features (e.g. distance, time, emission, toll)!?
Regards,
Peter
Calculating Route with different result routes?!
-
- Posts: 12
- Joined: Fri Feb 10, 2017 6:57 am
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Calculating Route with different result routes?!
Hello Peter,
you mean a single waypoint list in combination with a set of different parameter sets?
No, that's not possible.
We offer some bulk operations that can be used as shortcuts:
What is the exact goal or challenge you want to deal with?
Best regards Bernd
you mean a single waypoint list in combination with a set of different parameter sets?
No, that's not possible.
We offer some bulk operations that can be used as shortcuts:
- calculateBulkRouteInfo
(waypoints:WaypointDesc[][],options:RoutingOption[],exceptionPaths:ExceptionPath[]):BulkRouteInfo
set of waypoint lists, all routes will apply same options - calculateMatrixInfo(startwaypoints:WaypointDesc[],destwaypoints:WaypointDesc[],options:RoutingOption[],matrixOption:MatrixOptions):MatrixInfo
set of starts multiplied with set of destinations, all routes will apply same options
What is the exact goal or challenge you want to deal with?
Best regards Bernd
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...
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...
-
- Posts: 12
- Joined: Fri Feb 10, 2017 6:57 am
Re: Calculating Route with different result routes?!
I'd like to show the user different routes types (e.g. optimized in distance, time, fastest, lowest emission, toll cost), just for information purpose...
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Calculating Route with different result routes?!
In this case you have to call calculate[..]Route once per different parameter set to get the required output.
- calculateRouteInfo : just driving time and distance
- calculateRoute : same as calculateRouteInfo PLUS polygon, segment info, emissions, manoeuvres...
- calculateExtendedRoute : same as calculateRoute PLUS toll infos...
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...
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...