Hi,
Is there a way to use the closest facility function with a feature layer/service with point geometry. The feature layer is hosted in ArcGIS online and I am trying to create an ArcGIS javascript web app with the closest facility function