Travel - main

Spectrum OnDemand Web Services (SOAP)

Product type
Software
Portfolio
Verify
Product family
Product
Spectrum OnDemand
Version
main
Language
English
Product name
Spectrum OnDemand
Title
Spectrum OnDemand Web Services (SOAP)
First publish date
2006

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.

Table 1. Travel Preferences Options

Parameter

Description

  • RoadType_<type>

Specifies the priority to give to different types of roads when determining the route.

  • MajorRoads

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:

One of the following:

Y
Include only major roads in the calculation. Default.
N
Include all roads in the calculation.
  • Avoid
  • Toll Roads

Specifies whether you want a route with or without a toll road. The stage GetTravelCostMatrix GetTravelDirections contains the "avoid Toll Roads" feature. There is a check box 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: