Functionality limited in Basic.
Available with Business Analyst license.
Summary
Creates a new feature class of trade areas, based on drive time, driving distance, or other travel modes, around store point features.
Illustration
Usage
The spatial reference of the output feature class will be the same as the store layer.
Drive-time distances should be limited to 90 minutes. Realistic analyses beyond this threshold should be run using static rings.
The drive time center input feature class must be point features.
In most cases, the drive time center input feature layer will be a Business Analyst store layer.
Valid numeric distances must be used when defining drive-time values. Negative distances cannot be used.
Selecting ALL in Sites To Use will create rings for each point feature in the ring centers (stores) input feature class.
The projection of the input ring centers feature class will be copied to the output feature class.
Donut rings create output polygons that are bands. For example, if three radii are entered with values of 1, 2, and 3 miles, three output bands would be created with 0–1-, 1–3-, and 3–5-minute drive time trade areas.
Set the measure units to minutes if you want to create drive time trade areas.
Displaying traversed streets with street attribute fields attached can be useful when labeling feature classes.
To compensate for traffic patterns in drive-time analyses, adjust driving distances accordingly. For example, if you are looking at a time of day when traffic patterns are heavy (such as rush hour) and the drive time takes twice as long, then you can halve the drive time to reflect this pattern.
You can change the speed settings for different road classifications on the Business Analyst Preferences Data tab.
You can create more advanced drive-time polygons with custom road networks, adding barriers, and the like with the ArcGIS Network Analyst tools.
The Detailed border option allows you to draw drive-time boundaries that will ignore areas that cannot be driven to. This may create holes in your drive-time boundary file.
Syntax
DriveTime_ba (InputFeatureLayer, IDField, All_Or_Single_Or_Selected, Radius, {MeasureUnits}, OutputFeatureClass, {ByID_Or_ByName}, {Single_Site}, {Donut}, {BorderShape}, {RemoveOverlap}, {UseSMDT}, {ShowTraverceStreets}, {JoinStreetAttr}, {OutTraveseFeatureClass}, {Solver_Id}, {BarrierFeatureClasses}, {TravelMode})
Parameter | Explanation | Data Type |
InputFeatureLayer | The input feature class containing center points for the drive time trade areas. In most cases, this will be a Business Analyst store layer. | Feature Layer |
IDField | Unique ID field in the ring center (store) layer. | Field |
All_Or_Single_Or_Selected | Creates drive time trade areas for points in the input feature layer.
| String |
Radius [Radius,...] | The distances, in ascending size, used to create drive time trade areas around the input features. | Double |
MeasureUnits (Optional) | The units used with the distance values. By default, the units defined in the Business Analyst preferences will be selected.
| String |
OutputFeatureClass | The feature class that will contain the drive-time features. | Feature Class |
ByID_Or_ByName (Optional) | Field used to select a single point.
| String |
Single_Site (Optional) | ID or name of store to be used as the single point. | String |
Donut (Optional) | Creates nonoverlapping concentric rings, or donut bands.
| Boolean |
BorderShape (Optional) | Creates a detailed border, ignoring areas that cannot be driven to.
| Boolean |
RemoveOverlap (Optional) | Creates overlapping concentric rings or removes overlap.
| Boolean |
UseSMDT (Optional) | Generates drive times based on the Street Map algorithm. These drive times will be generated more quickly in large areas as compared to the default Network Analyst drive times.
| Boolean |
ShowTraverceStreets (Optional) | The feature class that contains all the streets contained by the drive-time polygon derived from the streets feature class.
| Boolean |
JoinStreetAttr (Optional) | Joins the attribute field from the streets layer to the new drive time traversed streets that will contain the traversed drive-time network for each drive time trade area.
| Boolean |
OutTraveseFeatureClass (Optional) | The feature class that will contain the traversed streets. | Feature Class |
Solver_Id (Optional) | The method to calculate drive time or travel mode.
| String |
BarrierFeatureClasses [BarrierFeatureClasses,...] (Optional) | Allows a user to place point, line, or polygon barriers when using drive time or drive distance algorithms to calculate distances. | Feature Layer |
TravelMode [TravelMode,...] (Optional) | Allows a user to select other methods of travel and travel distances. | String |
Code sample
DriveTime example (stand-alone script)
# Name: DriveTime.py
# Description: Generates a 1, 3, and 5 mile drive time in minutes around a store site in San Francisco.
# Author: Esri
# Import system modules
import arcview
import arcpy
arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.7\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
# Acquire extension license
arcpy.CheckOutExtension("Business")
arcpy.CheckOutExtension("Network")
# Define input and output parameters for the Drive Time tool
InputFeatureLayer = "C:/temp/sf_store.shp"
IDField = "STORE_ID"
OutputFeatureClass = "C:/temp/Drivetime.shp"
All_Or_Single_Or_Selected = "ALL"
Radius = "1;3;5"
MeasureUnits = "Minutes"
# Create drive time based trade areas
arcpy.DriveTime_ba(InputFeatureLayer,
IDField,
OutputFeatureClass,
All_Or_Single_Or_Selected,
Radius,
MeasureUnits)
# Release extension license
arcpy.CheckInExtension("Business")
arcpy.CheckInExtension("Network")
Environments
This tool does not use any geoprocessing environments.
Licensing information
- ArcGIS Desktop Basic: Requires Business Analyst
- ArcGIS Desktop Standard: Requires Business Analyst
- ArcGIS Desktop Advanced: Requires Business Analyst