Upon successful execution, the service returns the best route and driving directions between the incident and the chosen facility and the status indicating if the analysis was successful using the following output parameters:
output_closest_facilities
This output parameter gives you access to the facilities that were closest to the incidents. It provides the location of the facilities and attribute information from the corresponding input facilities.
The following provides a description of fields that are returned for each route:
Field name | Description |
---|---|
OID | A unique identifier for the route. This identifier is auto generated by the service. |
FacilityOID | The ObjectID value of the input facility represented by the output facility. This field is often used to join information from the input facilities. |
output_routes
Use this parameter to access the resulting route or routes between the facilities and the incidents. The route_shape and route_line_simplification_tolerance parameters highly influence the shape of the output routes. The route geometries are returned in the spatial reference specified as the env:outSR parameter.
The following provides a description of fields that are returned for each route:
Field name | Description |
---|---|
OID | A unique identifier for the route. This identifier is auto generated by the service. |
Name | The name of the closest facility route is based on the names of the associated facility and incident. The facility name is first if Facility to Incident is specified as the travel_direction parameter. For example, Facility 5—Incident 3 indicates the route travels from Facility 5 to Incident 3. If Incident to Facility is specified as the travel_direction parameter, the incident name is first; for instance, Incident 3—Facility 5. |
FacilityID | The unique ID of the facility the route visits. If the ID attribute is included when specifying the facilities parameter, the FacilityID value is the same as the value for the ID attribute. Otherwise, FacilityID contains an auto-generated identifier. |
FacilityOID | The ObjectID value of the input facility used to generate the route. This field is often used to join information from facilities to routes. |
FacilityRank | The rank of the facility among all facilities found for the associated incident; the closest facility has a rank of 1. |
FacilityCurbApproach | Describes the side of the vehicle the facility is on when arriving at or departing from the facility. A value of 1 means the right side of vehicle; 2 indicates the left side. |
IncidentID | The unique ID of the incident the route visits. If the ID attribute is included when specifying the incidents parameter, the IncidentID value is same as the value for the ID attribute. Otherwise IncidentID contains an auto-generated identifier. |
IncidentOID | The ObjectID value of the input incident used to generate the route. This field is often used to join information from incidents to routes. |
IncidentCurbApproach | Describes the side of the vehicle the incident is on when arriving at or departing from the incident. A value of 1 means the right side of the vehicle; a value of 2 indicates the left side. |
Shape_Length | The length of the route in the units of the spatial reference specified for the route geometry. By default the length is reported in decimal degrees if the env:outSR parameter is not specified. |
Total_Minutes | The cumulative travel time in minutes of the route between the facility and the incident. |
Total_Miles | The cumulative travel distance in miles of the route between the facility and the incident. |
Total_Kilometers | The cumulative travel distance in kilometers of the route between the facility and the incident. |
StartTime | The start time of the route, reported as local time at the first stop. |
EndTime | The end time of the route, reported as local time at the last stop. |
StartTimeUTC | The start time of the route in Coordinated Universal Time (UTC). |
EndTimeUTC | The end time of the route in Coordinated Universal Time (UTC). |
output_directions
Use this parameter to access the turn-by-turn driving directions for each resulting route between the facilities and the incidents. The parameter includes the driving directions as well as the geometry for the directions feature corresponding to the text. The shape for the directions feature is determined from the underlying streets included in the route. The feature geometries are returned in the spatial reference specified as the env:outSR parameter. The features are empty if thepopulate_directions parameter is false. The directions_language, directions_distance_units and the directions_style_name parameters highly influence the driving directions.
The following provides a description of fields that are returned for directions features:
Field name | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ObjectID | A unique identifier for the directions feature. This identifier is auto generated by the service. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RouteName | The name of the route that the driving action applies to. This value is same as the Name attribute from output_routes parameter. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ArriveTime | The time of day to initiate the given driving action. If the route spans multiple days, the date and time of day are displayed. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type | Indicates the type of maneuver that the direction feature represents or the type of the directions text. To determine whether Type refers to a maneuver type or a directions string type, you need to check the value of SubItemType field. Type can be used, for example, to assign a different icon for a direction text based on the maneuver type or use a special formatting style based on the directions string type when displaying the driving directions in your applications The Type value is an integer from the Maneuver Types or the Directions String Types tables listed below. Maneuver types
Directions string types
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SubItemType | Specifies whether the Type field refers to an integer from the Directions String Types table or the Maneuver Types table.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Text | A text description of the driving direction. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ElaspsedTime | The time elapsed in minutes from when the current driving direction starts until the next one starts, or until the route ends for the last driving direction. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DriveDistance | The distance from where the current driving direction occurs to where the next one occurs, or to where the route ends for the last driving direction. The value is in the units specified by the distance_units parameter. This value is zero for driving directions that occur at the same location where the next one begins. For example, the DriveDistance is 0 for the directions text at the start of the route. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shape_Length | The length of the directions feature in the units of the spatial reference specified for the routes. By default the length is reported in decimal degrees if the env:outSR parameter is not specified. |
solve_succeeded
Use this parameter to determine if the service was able to find the routes successfully. The error messages for the failure can be obtained by making a request to get the status of the job.