Language independent network analysis class names

154
0
08-02-2019 03:30 AM
GEOINT_ENGINEER
Esri Contributor

When using Network Analyst in a Python Environment you should use the GetNAClassNames utitlity function returning the language dependent Network Analysis class names as a dictionary. Using ArcGIS with the German Supplement you end up with "Einrichtungen" instead of "Facilities".

na_layer =  arcpy.na.MakeClosestFacilityAnalysisLayer(...
na_classes = arcpy.na.GetNAClassNames(na_layer)
facility_class_name = na_classes["Facilities"]

arcpy.na.AddLocations(na_layer, facility_class_name, ...

GetNAClassNames Documentation

Product Manager
Developers and Location Services
Germany and Switzerland
Tags (2)
0 Kudos
0 Replies