ClosestFacility output data types
The output data types containing the results from a closest facility analysis are described.
ClosestFacilities and Facilities
This provides access to the output facilities from a closest facility analysis.
The ClosestFacilities data type includes only those facilities from the set of input facilities that were closest to at least one incident. The Facilities data type includes all the facilities from the analysis, including the facilities that cannot be reached from any of the incidents. You can use the Status field from the Facilities data type to determine why a facility was not used in the analysis.
These data types support the fields described below. In addition to these fields, the data types also include all the fields from the input feature class used as facilities for the analysis.
|
Field name |
Description |
Data type |
|---|---|---|
|
|
The object ID of the feature. |
ObjectID |
|
|
The name of the facility. The values for this field are copied from the |
Text |
|
|
The numeric identifier of the network dataset source feature class on which the input point is located. |
Long |
|
|
The ObjectID of the feature in the source on which the input point is located. |
Long |
|
|
The position along the digitized direction of the source line feature. This value is stored as a ratio. This field is null if the network location references a junction. |
Double |
|
|
The side of the edge in relation to the digitized direction of the line feature. This field is limited to a domain of two values: Right Side (1) and Left Side (2). |
Long |
|
|
The direction a vehicle may arrive at and depart from the facility. The values for this field are copied from the |
Long |
|
|
Specifies the status of the point with respect to its location on the network and the outcome of the analysis. The possible values are the following:
|
Long |
|
|
The x-coordinate of the position on the network dataset where the point was located, in the coordinate system of the network dataset. |
Double |
|
|
The y-coordinate of the position on the network dataset where the point was located, in the coordinate system of the network dataset. |
Double |
|
|
The z-coordinate of the position on the network dataset where the point was located, in the coordinate system of the network dataset. The |
Double |
|
|
The distance in meters between the point's geographic location and the position where it was located on the network. |
Double |
|
|
The amount of time added to the total route time when this facility is visited. The values for this field are copied from the |
Double |
|
|
The amount of distance added to the total route distance when this facility is visited. The values for this field are copied from the |
Double |
|
|
The cost added to the total route cost when this facility is visited. The values for this field are copied from the |
Double |
|
|
The impedance value at which the analysis stopped searching for the facilities from a given incident. The values for this field are copied from the |
Double |
|
|
A user-defined unique identifier for the facility. The values for this field are copied from the |
Text |
|
|
The This field is not always reliable for joins. This field is null for inputs added to the analysis using the |
Long |
|
|
Legacy:The |
Long |
|
|
The values for this field are copied from the |
Double |
|
|
The values for this field are copied from the |
Double |
|
|
The values for this field are copied from the |
Double |
Incidents
This provides access to the locations used as starting or ending points in a closest facility analysis.
The data type supports the following fields:
|
Field name |
Description |
Data type |
|---|---|---|
|
|
The object ID of the feature. |
ObjectID |
|
|
The name of the incident. The values for this field are copied from the |
Text |
|
|
The number of facilities that need to be found for the given incident. The values for this field are copied from the |
Long |
|
|
The numeric identifier of the network dataset source feature class on which the input point is located. |
Long |
|
|
The ObjectID of the feature in the source on which the input point is located. |
Long |
|
|
The position along the digitized direction of the source line feature. This value is stored as a ratio. This field is null if the network location references a junction. |
Double |
|
|
The side of the edge in relation to the digitized direction of the line feature. This field is limited to a domain of two values: Right Side (1) and Left Side (2). |
Long |
|
|
The direction a vehicle may arrive at and depart from the incident. The values for this field are copied from the |
Long |
|
|
Specifies the status of the point with respect to its location on the network and the outcome of the analysis. The possible values are the following:
|
Long |
|
|
The x-coordinate of the position on the network dataset where the point was located, in the coordinate system of the network dataset. |
Double |
|
|
The y-coordinate of the position on the network dataset where the point was located, in the coordinate system of the network dataset. |
Double |
|
|
The z-coordinate of the position on the network dataset where the point was located, in the coordinate system of the network dataset. The |
Double |
|
|
The distance in meters between the point's geographic location and the position where it was located on the network. |
Double |
|
|
The amount of time added to the total route time when this incident is visited. The values for this field are copied from the |
Double |
|
|
The amount of distance added to the total route distance when this incident is visited. The values for this field are copied from the |
Double |
|
|
The cost added to the total route cost when this incident is visited. The values for this field are copied from the |
Double |
|
|
The impedance value at which the analysis stopped searching for the incidents from a given facility. The values for this field are copied from the |
Double |
|
|
A user-defined unique identifier for the incident. The values for this field are copied from the |
Text |
|
|
The This field is not always reliable for joins. This field is null for inputs added to the analysis using the |
Long |
|
|
The values for this field are copied from the |
Double |
|
|
The values for this field are copied from the |
Double |
|
|
The values for this field are copied from the |
Double |
Routes
This provides access to the resulting route or routes between the facilities and the incidents.
The data type supports the following fields:
|
Field name |
Description |
Data type |
|---|---|---|
|
|
The object ID of the feature. |
ObjectID |
|
|
The name of the closest facility route is based on the names of the associated facility and incident. The facility name is first if the value for the If |
Text |
|
|
The rank of the facility among all facilities found for the associated incident; the closest facility has a rank of 1. |
Long |
|
|
The user-defined unique ID of the facility the route visits. The values for this field are copied from the |
Text |
|
|
The |
Long |
|
|
This field corresponds to the |
Long |
|
|
The user-defined unique ID of the incident the route visits. The values for this field are copied from the |
Text |
|
|
The |
Long |
|
|
This field corresponds to the |
Long |
|
|
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; a value of 2 indicates the left side. |
Long |
|
|
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. |
Long |
|
|
The start time of the route, reported in the time zone in which the first stop is located. |
Date |
|
|
The end time of the route, reported in the time zone in which the last stop is located. |
Date |
|
|
The start time of the route in coordinated universal time (UTC). |
Date |
|
|
The end time of the route in coordinated universal time (UTC). |
Date |
|
|
The cumulative travel time in minutes of the route between the facility and the incident. This includes any Note:An additional field, Note:Additional fields, |
Double |
|
|
The cumulative travel distance in miles of the route between the facility and the incident. This includes any |
Double |
|
|
The cumulative travel distance in kilometers of the route between the facility and the incident. This includes any Note:An additional field, Note:Additional fields, |
Double |
|
|
The cumulative travel cost in unknown units of the route between the facility and the incident. This includes any This field is included only when the travel mode used for the analysis has an impedance attribute that is neither time based nor distance based. Note:Additional fields, |
Double |
Directions
This provides access to the turn-by-turn directions for each resulting route.
Legacy:
This output class has been superseded by the DirectionPoints and DirectionLines output classes, which should be used for all new scripts and workflows. The Directions output class will be removed in a future release.
The data type supports the following fields:
|
Field name |
Description |
Data type |
|---|---|---|
|
|
The object ID of the feature. |
ObjectID |
|
|
The name of the route to which the driving action applies. This value is the same as the |
Text |
|
|
The time of day to initiate the given driving action. If the route spans multiple days, the date and time of day are displayed. |
Date |
|
|
The type of maneuver that the directions feature represents or the type of the directions text. To determine whether
The Maneuver Types
Directions String Types
|
Short |
|
|
Specifies whether the
|
Short |
|
|
A text description of the travel directions. |
Text |
|
|
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. |
Float |
|
|
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 This value is zero for driving directions that occur at the same location where the next one begins. For example, the |
Float |
DirectionPoints
This is the output turn-by-turn directions for the routes calculated in the analysis, represented as point locations along the routes where specific direction events or maneuvers occur.
The data type supports the following fields:
|
Field name |
Description |
Data type |
|---|---|---|
|
|
The object ID of the feature. |
ObjectID |
|
|
The |
Long |
|
|
The sequence of the direction points for the route, starting with 1. |
Long |
|
|
Specifies the type of direction event or maneuver described by the point, designated by one of the values below.
|
Long |
|
|
The ObjectID of the output facility with which this direction point is associated, if any. If the point does not represent a visit to a facility, the value is null. |
Long |
|
|
The ObjectID of the output incident with which this direction point is associated, if any. If the point does not represent a visit to an incident, the value is null. |
Long |
|
|
The directions text that will be displayed in the consuming application. |
Text |
|
|
The time the direction event occurs in coordinated universal time (UTC). |
Date |
|
|
The difference in minutes between the local time at the maneuver location and UTC time shown in the |
Double |
|
|
The name of the direction point. |
Text |
|
|
The highway exit name that appears in the directions instruction. |
Text |
|
|
The alternate source name that appears in the directions instruction. |
Text |
|
|
The name of the intersecting or cross street that appears in the directions instruction. |
Text |
|
|
The signpost branch name that appears in the directions instruction. |
Text |
|
|
The signpost toward destination name that appears in the directions instruction. |
Text |
|
|
The building level at which this direction event occurs. This value corresponds to the |
Long |
|
|
The short text that will be used as voice guidance text in the consuming application. |
Text |
|
|
The additional text, including expanded abbreviations and plurals, that will be used as voice guidance text in the consuming application. |
Text |
|
|
The bearing in degrees of the vehicle departing this point. Zero indicates north. |
Double |
DirectionLines
This is the output route lines calculated in the analysis sliced to represent each route segment between DirectionPoints events or maneuver locations.
|
Field name |
Description |
Data type |
|---|---|---|
|
|
The object ID of the feature. |
ObjectID |
|
|
The |
Long |
|
|
The |
Long |
|
|
Specifies the type of direction situation described by this line, designated by one of the following values:
|
Long |
|
|
The length of the line segment measured in meters. |
Double |
|
|
The travel time along the line segment in minutes. |
Double |
|
|
The building level at which this direction event begins. This value corresponds to the Learn more about the directions configuration of a network dataset |
Long |
|
|
The building level at which this direction event ends. This value corresponds to the |
Long |