The root element <route_request>
has a number of attributes, most of them optional. The attributes are defined as follows.
vendor
is an optional attribute whose default value identifies the routing provider as Oracle.
id
is a required attribute that specifies an identification number to be associated with the request.
route_preference
is an optional attribute that specifies whether you want the route with the lowest estimated driving time (FASTEST
) or the route with the shortest driving distance (SHORTEST
, the default).
road_preference
is an optional attribute that allows the routing process to have a preference for highways (HIGHWAY
, the default) or local roads (LOCAL
).
return_driving_directions
is an optional attribute that specifies whether driving directions for the route are returned. TRUE
returns driving directions; FALSE
(the default) does not return driving directions.
return_hierarchical_driving_directions
is an optional attribute that specifies whether driving directions for the route are returned in an expandable and collapsible hierarchy. TRUE
returns driving directions in an expandable and collapsible hierarchy; FALSE
(the default) returns driving directions in a list with no hierarchy.
return_locations
is an optional attribute that specifies whether to return the geocode information for all the locations in the route. TRUE
returns the geocode information; FALSE
(the default) does not.
return_subroutes
is an optional attribute that specifies whether to return the subroutes in a multi-address route. TRUE
(the default for multi-address routes) returns subroutes; FALSE
does not return subroutes. (This attributed is ignored for simple routes.)
return_route_geometry
is an optional attribute that specifies whether to return the coordinates of the line string that represents the route. TRUE
returns the coordinates; FALSE
(the default) does not return the coordinates.
return_subroute_geometry
is an optional attribute that specifies whether to return the coordinates of the line strings that represent the subroutes within a route. TRUE
returns the coordinates; FALSE
(the default for multi-address routes) does not return the coordinates. (This attributed is ignored for simple routes.)
return_segment_geometry
is an optional attribute that specifies whether to return the coordinates of the line strings that represent maneuvers of a route. TRUE
returns the coordinates; FALSE
(the default) does not return the coordinates. If return_segment_geometry
is TRUE
, driving directions for the route are returned regardless of the value of the return_driving_directions
attribute.
return_detailed_geometry
is an optional attribute that indicates the level of detail to be included in returned geometries. TRUE
(the default) returns detailed geometries; FALSE
returns generalized geometries (usually with fewer coordinates).
return_route_edge_ids
is an optional attribute that specifies whether to return the edge ID values of the edges in the route. TRUE
returns the edge ID values; FALSE
(the default) does not return the edge ID values.
return_subroute_edge_ids
is an optional attribute that specifies whether to return the edge ID values of the edges in the subroutes. TRUE
returns the edge ID values; FALSE
(the default for multi-address routes) does not return the edge ID values. (This attributed is ignored for simple routes.)
return_segment_edge_ids
is an optional attribute that specifies whether to return the edge ID values of the edges of all maneuvers in the route. TRUE
returns the edge ID values; FALSE
(the default) does not return the edge ID values. If return_segment_edge_ids
is TRUE
, driving directions for the route are returned regardless of the value of the return_driving_directions
attribute.
language
is an optional attribute that overrides the default language used to generate the driving directions. The default language for is set in the web.xml
file; you can use this attribute to override the default on a per-request basis. The following attribute values are supported: ENGLISH
, FRENCH
, GERMAN
, ITALIAN
, and SPANISH
.
distance_unit
is an optional attribute that specifies the unit of measure for distance values that are returned: KILOMETER
or KM
for kilometer, MILE
(the default) for mile, or METER
for meter.
length_unit
is an optional attribute that specifies the length measurement system used for input length values: US
for feet (the default) or METRIC
for meters. This attribute is used to specify the height, length, and/or width of trucks.
time_unit
is an optional attribute that specifies the unit for time values that are returned: HOUR
for hour, MINUTE
(the default) for minute, or SECOND
for second.
weight_unit
is an optional attribute that specifies the weight measurement system used for input weight values: US
for tons (the default) or METRIC
for metric tons. This attribute is used to specify the weight of trucks.
pre_geocoded_locations
is an optional attribute that indicates how locations are specified. TRUE
means that both are previously geocoded locations specified using the <pre_geocoded_location>
element; FALSE
(the default) means that both are addresses or longitude/latitude pairs specified using the <input_location>
element.
driving_directions_detail
is an optional attribute that influences the level of detail and the number of separate steps in driving instructions. The available values are HIGH
(most details and steps), MEDIUM
(the default), and LOW
(fewest details and steps). For example, LOW
might treat a segment as a single step even if it involves slight maneuvers to the right or left. The effect of a value for this attribute on the length of returned driving directions will vary, depending on the exact names of elements and maneuvers. This attribute is ignored if you do not specify TRUE
for return_driving_directions
or return_hierarchical_driving_directions
.
optimize_route
is an optional attribute that specifies whether a multi-address route request should have its unfixed locations reordered to optimize the overall route. TRUE
reorders the locations to optimize the overall route (Traveling Salesperson); FALSE
(the default) does not reorder the locations (multi-address). Since multi-address requests are not optimized, all locations are returned in the order specified in the request. In multi-address and TSP open tour requests, the START_LOCATION and END_LOCATION are optional. If they are specified they are fixed locations and are not subject to reordering in TSP requests. In multi-address and TSP requests, one or more intermediate locations (LOCATION) must be specified, and they are unfixed locations and are subject to reordering in a TSP request.
route_type
is an optional attribute that specifies whether a multi-address route is an OPEN
(the default) or CLOSED
tour. An open tour routes from the START_LOCATION, or first LOCATION, to the END_LOCATION, or last LOCATION. In a closed tour the START_LOCATION is required and is used as both the starting and ending ___location. If an END_LOCATION is specified for a closed tour, an exception is raised.
vehicle_type
is an optional attribute that specifies that the type of vehicle is an AUTO
(the default) or a TRUCK
. For the truck description subattributes to be used, the vehicle type must be set to TRUCK
; if the vehicle type is AUTO
, these subattributes are ignored.
truck_type
is an optional attribute and a subattribute to vehicle_type
being set to TRUCK
. This attribute describes a specific type of truck, allowing it to potentially override more generalized truck rules. The following attribute values are supported: DELIVERY
, PUBLIC
, RESIDENT
, and TRAILER
. The DELIVERY
, PUBLIC
, and RESIDENT
truck types provide exceptions to truck rules for trucks of these types. Garbage and public utility trucks are examples of PUBLIC
trucks. The RESIDENT
truck type describes trucks that are local to a neighborhood. The TRAILER
truck type describes extra restrictions that semi-trailer trucks are subject to are that the other trucks are not.
truck_height
is an optional attribute and a subattribute to vehicle_type
being set to TRUCK
. This attribute specifies, as a floating-point number, the height of a truck in length_units
. This height is used to check against any height restrictions that may exist on an edge being considered as part of a route.
truck_length
is an optional attribute and a subattribute to vehicle_type
being set to TRUCK
. This attribute specifies, as a floating-point number, the length of a truck in length_units
. This length is used to check against any length restrictions that may exist on an edge being considered as part of a route.
truck_per_axle_weight
is an optional attribute and a subattribute to vehicle_type
being set to TRUCK
. This attribute specifies, as a floating-point number, the per axle weight of a truck in weight_units
. This weight is used to check against any per axle weight restrictions that may exist on an edge being considered as part of a route.
truck_weight
is an optional attribute and a subattribute to vehicle_type
being set to TRUCK
. This attribute specifies, as a floating-point number, the weight of a truck in weight_units
. This weight is used to check against weight restrictions that may exist on an edge being considered as part of a route.
truck_width
is an optional attribute and a subattribute to vehicle_type
being set to TRUCK
. This attribute specifies, as a floating-point number, the width of a truck in length_units
. This width is used to check against width restrictions that may exist on an edge being considered as part of a route.