Calculating Route with different result routes?!

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
peter.detzner
Posts: 12
Joined: Fri Feb 10, 2017 6:57 am

Calculating Route with different result routes?!

Post by peter.detzner »

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
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Calculating Route with different result routes?!

Post by Bernd Welter »

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:
  • 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
So the one you asked for is missing :cry: But with a server that has several backend modules you will be able to compute the given tasks in parallel.

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... :twisted:
peter.detzner
Posts: 12
Joined: Fri Feb 10, 2017 6:57 am

Re: Calculating Route with different result routes?!

Post by peter.detzner »

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...
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Calculating Route with different result routes?!

Post by Bernd Welter »

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...
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... :twisted:
Post Reply