Travel
This set of preferences allows you to set the desirability for each road type. For instance, you can request that the server attempt to avoid all of the major road types.
Option |
Description |
---|---|
Road preferences |
Specifies the priority to give to different types of roads when determining the route. You can set priority for the following road types:
For each road type you can specify one of the following:
|
Travel only on major roads |
Specifies whether to include all roads in the calculation or just major roads. If you choose to include only major roads, performance will improve but accuracy may decrease. This map represents a travel boundary with travel allowed on all roads: This map represents a travel boundary with travel restricted to major roads only: |
Avoid Toll Roads |
Specifies whether you want a route with or without a toll road. The stage contains the "avoid Toll Roads" feature. There is a checkbox labeled "Toll Roads" on the UI. You can check it to avoid toll roads. You can also add or expose this parameter from input value as "TollRoad". The input value can contain Boolean values where False is the default value. For Example: Following route contains toll road information, which is mentioned in the following image: Now, for the same points, if you check the toll Road or set the “TollRoad” parameter as True, the response contains a route without any toll roads. See the following response: |