Language independent network analysis class names

Discussion created by j.tschadaesri-de-esridist Employee on Aug 2, 2019

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