
Note: This optional parameter can only be used when reconstructing a route. The summary in the route response will contain information (see the planningReason parameter) about the reason for the better alternative. If there is a road block on the reference route, then any alternative that does not contain any blockages will be considered a better route.
betterRoute: only returns alternative routes that are better than the reference route, according to the given planning criteria (set by routeType). anyRoute: returns alternative routes that are significantly different from the reference route. When maxAlternatives is greater than 0, allows to specify the objective of computing alternative routes: finding routes that are significantly different than the reference route, or finding routes that are better than the reference route. Fewer alternative routes may be returned if either fewer alternatives exist, or the requested number of alternatives is larger than the service can calculate. Using a value greater than 0 in conjunction with computeBestOrder set to true is not allowed. Number of desired alternative routes to be calculated. The order of these optional request parameters is not important. All of the following parameters are optional. The following table describes a subset of the parameters that can be used in the Calculate Route service the remaining parameters are listed on the Common Routing Parameters page. Values: Colon-delimited generalizedLocations, with the constraints mentionned above. Circle waypoints cannot be used when computeBestOrder is true. A waypoint of type location results in an extra leg in the response, a waypoint of type circle does not. The maximum allowed number of waypoints is 150. One or more optional intermediate generalizedLocations (known as waypoints in this context) may be provided:. The last location in the sequence defines the destination and must be a location. The first location in the sequence defines the origin and must be a location.
At least two locations must be provided.Locations through which the route is calculated.