The travel modes of my network dataset work correctly in ArcGIS Pro, but do not work using python arcpy.nax. Is there something wron in how I call them up in my script or are there some informations from the properties that are not used by arcpy and have to be manually recreated?
nd_travel_modes = arcpy.nax.GetTravelModes(network_layer)
for mode in nd_travel_modes:
# Set properties.
service_area.timeUnits = arcpy.nax.TimeUnits.Minutes
service_area.defaultImpedanceCutoffs = [10, 20, 30]
service_area.travelMode = mode
service_area.outputType = arcpy.nax.ServiceAreaOutputType.Polygons
service_area.geometryAtOverlap = arcpy.nax.ServiceAreaOverlapGeometry.Overlap
##### Load the inputs. #####
input_facilities = r"C:\Users\callt\Desktop\oS\psX\projects\1238 Warendorf\data\analysis\p30\1238_data.gdb\koordinaten_betriebe"
service_area.load(arcpy.nax.ServiceAreaInputDataType.Facilities, input_facilities)
##### Solve the analysis. #####
result = service_area.solve()