Skip To Content

Point to point routing

You can create point-to-point routes using the Point to point routing action, which is supported by Network Analyst. Points in a route can be mapped in the order you specify or in the order that minimizes overall travel time or distance. Routes represent the shortest path along roads to visit specified stops. For more information, see the Esri Developer documentation about routing services.

Available connectors

  • ArcGIS Online (ArcGIS)
  • ArcGIS Enterprise
  • ArcGIS PaaS

Parameters

NameKeyRequiredTypeDescription

Routing stops

stops

Yes

string

Enter points as latitude (y) and longitude (x), features, or a feature service.

Travel mode

travelModeName

No

string

Select the travel mode.

Find best route

findBestSequence

No

boolean

Specify whether the service will reorder stops to find the optimized route.

Preserve first stop

preserveFirstStop

No

boolean

Specify whether the service will keep the first stop fixed when reordering the stops.

Return directions

returnDirections

No

boolean

Specify whether the service will generate driving directions for each route.