Drive Time (Business Analyst)

Nivel de licencia:BasicStandardAdvanced

Resumen

Creates a new feature class of trade areas, based on drive time or driving distance, around store point features.

Learn more about how Drive Time works

Ilustración

Drive time results

Uso

Sintaxis

DriveTime_ba (InputFeatureLayer, IDField, All_Or_Single_Or_Selected, Radius, {MeasureUnits}, OutputFeatureClass, {ByID_Or_ByName}, {Single_Site}, {Donut}, {BorderShape}, {RemoveOverlap}, UseSMDT, {ShowTraverceStreets}, {JoinStreetAttr}, {OutTraverseFeatureClass}, Solver_Id, {BarrierFeatureClasses})
ParámetroExplicaciónTipo de datos
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.

  • AllCreates drive time trade areas for all points.
  • SingleCreates drive time trade areas for a single point.
  • SelectedCreates drive time trade areas for all selected points in ArcMap.
String
Radius
[Radius,...]

The distances, in ascending size, used to create drive time trade areas around the input features.

Double
MeasureUnits
(Opcional)

The units used with the distance values. By default, the units defined in the Business Analyst preferences will be selected.

  • MinutesMissing Value
  • Decimal DegreesMissing Value
  • FeetMissing Value
  • KilometersMissing Value
  • MetersMissing Value
  • MilesMissing Value
  • Nautical MilesMissing Value
  • YardsMissing Value
String
OutputFeatureClass

The feature class that will contain the drive-time features.

Feature Class
ByID_Or_ByName
(Opcional)

Field used to select a single point.

  • IDSelects a single point using the store ID field.
  • NameSelects a single point using the store name field.
String
Single_Site
(Opcional)

ID or name of store to be used as the single point.

String
Donut
(Opcional)

Creates nonoverlapping concentric rings, or donut bands.

  • TrueCreates output polygons that are donut rings. For example, if three radii (1, 2, and 3 miles) are entered, three output bands would be created with 0–1-, 1–3-, and 3–5-mile rings.
  • FalseCreates concentric rings. This is the default.
Boolean
BorderShape
(Opcional)

Creates a detailed border, ignoring areas that cannot be driven to.

  • TrueGenerates a detailed border for the drive time.
  • FalseDoes not generate a detailed border for the drive time.
Boolean
RemoveOverlap
(Opcional)

Creates overlapping concentric rings or removes overlap.

  • TRUEUses Thiessen polygons to remove overlap between output ring polygons.
  • FALSE Output ring features are created with overlap.
Boolean
UseSMDT

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.

  • TrueCreate drive times based on the Street Map algorithm.
  • FalseCreates drive times based on the Network Analyst algorithm.
Boolean
ShowTraverceStreets
(Opcional)

The feature class that contains all the streets contained by the drive-time polygon derived from the streets feature class.

  • TrueDisplays traversed streets as a new layer.
  • FalseDoes not display traversed streets as a new layer.
Boolean
JoinStreetAttr
(Opcional)

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.

  • TrueJoins attribute data to the traversed street layer.
  • FalseDoes not join attribute data to the traversed street layer.
Boolean
OutTraverseFeatureClass
(Opcional)

The feature class that will contain the traversed streets.

Feature Class
Solver_Id

The method to calculate drive time or drive distance.

  • Standard Drive Times Creates drive time polygons based on Network Analyst. This option is best utilized for large numbers of input points and creates more generalized output than the Detailed option.
  • Detailed Drive Times Creates drive time polygons based on Network Analyst. This option is best utilized for smaller numbers of input points and creates more detailed, processing intensive output.
  • ArcGIS Online APICreates drive time polygons based utilizing the ArcGIS Online API.
String
BarrierFeatureClasses
[BarrierFeatureClasses,...]
(Opcional)

Allows a user to place point, line, or polygon barriers when using drive time or drive distance algorithms to calculate distances.

Feature Layer

Ejemplo de código

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.AddToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.2\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business")
  arcpy.CheckOutExtension("Network") 
 
# Define input and output parameters for the Drive Time tool
  StorePath = "C:/temp/sf_store.shp"
  IdFld = "STORE_ID"
  OutPath = "C:/temp/Drivetime.shp"
 
# Create drive time based trade areas
  arcpy.DriveTime_ba(StorePath, IdFld, "ALL", "1;3;5", "Minutes", OutPath)
 
# Release extension license 
  arcpy.CheckInExtension("Business") 
  arcpy.CheckInExtension("Network") 
 
except:
  print arcpy.GetMessages(2)

Entornos

Esta herramienta no utiliza ningún entorno de geoprocesamiento.

Temas relacionados

Información sobre licencias

ArcGIS for Desktop Basic: Requiere Business Analyst
ArcGIS for Desktop Standard: Requiere Business Analyst
ArcGIS for Desktop Advanced: Requiere Business Analyst
4/26/2014