ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Hilfe
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Die Mapping-Plattform für Ihre Organisation

ArcGIS Desktop

Ein vollständiges professionelles GIS

ArcGIS Enterprise

GIS in Ihrem Unternehmen

ArcGIS Developers

Werkzeuge zum Erstellen standortbezogener Apps

ArcGIS Solutions

Kostenlose Karten- und App-Vorlagen für Ihre Branche

ArcGIS Marketplace

Rufen Sie Apps und Daten für Ihre Organisation ab.

  • Dokumentation
  • Support
Esri
  • Anmelden
user
  • Eigenes Profil
  • Abmelden

ArcMap

  • Startseite
  • Erste Schritte
  • Karte
  • Analysieren
  • Verwalten von Daten
  • Werkzeuge
  • Erweiterungen

Live Traffic Data

  • Zusammenfassung
  • Eigenschaften
  • Codebeispiel

Zusammenfassung

Provides information about the live traffic information stored in the network dataset such as the streets—TMC join table and the path to the DTF files.

Eigenschaften

EigenschaftErklärungDatentyp
tmcTableName
(Nur lesen)

The name of the table that contains the relationship between streets and traffic messaging channel (TMC) codes.

String
tmcFieldName
(Nur lesen)

The name of the field within the Streets—TMC join table that contains the TMC codes.

String
trafficFeedLocation
(Nur lesen)

The path to the location where DTF files are stored. The network dataset reads the DTF files from this location to get the live traffic data.

String

Codebeispiel

Live Traffic Data Properties example

Display a summary of the live traffic information for the network dataset.

# Name: NDSLiveTrafficDataProperties_ex01.py
# Description: Print live traffic information for the network dataset.

import arcpy
import sys

# Set the workspace
arcpy.env.workspace = "C:/Data/SanDiego.gdb/Transportation"

# Create Describe object for the network dataset
desc = arcpy.Describe("Streets_ND")

#Get the historical traffic data object
if desc.supportsLiveTrafficData:
    traffic = desc.liveTrafficData
else:
    #If the directions are not set for the network dataset, exit 
    print "No live traffic information"
    sys.exit() 

print "Live Traffic Information ----" 
print "TMC Table Name: " , traffic.tmcTableName
print "TMC Field Name: " , traffic.tmcFieldName 
print "Traffic Feed: " , traffic.trafficFeedLocation

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Über Esri

  • Über uns
  • Karriere
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Wir sind an Ihrer Meinung interessiert.
Copyright © 2021 Esri. | Datenschutz | Rechtliches