Plan Route Analysis Widget - Address instead of Name?

71
0
03-29-2021 07:29 AM
Labels (1)
JenParkhill
New Contributor III

Hi there,

I am wondering if there is a way to configure the ArcGIS Web AppBuilder for Portal (10.8.1), Analysis Widget, Plan Routes, to show the stop's "Address" instead of the stop's "Name". At the moment, it is defaulting to an existing field called "Name", which is not relevant when looking at the route (it's the customer's name, not their address). The user would like to be able to see the "Address" instead.

It appears that this variable would be set behind the scenes in the widget using this:

https://desktop.arcgis.com/en/arcmap/10.8/tools/network-analyst-toolbox/make-route-layer.htm

#Load the geocoded address locations as stops mapping the address field from
#geocoded stop features as Name property using field mappings.
fieldMappings = arcpy.na.NAClassFieldMappings(outNALayer, stopsLayerName)
fieldMappings["Name"].mappedFieldName = "Address"
arcpy.na.AddLocations(outNALayer, stopsLayerName, outStops, fieldMappings,
"", exclude_restricted_elements = "EXCLUDE")

But in the out of the box widget, there doesn't appear to be an option to set the field mapping. Is this the case or am I missing something?

Short of setting the database field names (i.e. renaming the Address field to Name...), I am not seeing a workaround. Does anyone have any suggestions? Is setting the field mapping only available if we develop/customize our own analysis widget?

Thanks in advance,

JP

0 Kudos
0 Replies