ConnectOriginsToDestinations

Titleā€ƒ ConnectOriginsToDestinations

Summary

Calculates routes between pairs of points.


Usage

Syntax

Parameter Explanation
originsLayer

The routes start from points in the origins layer.

destinationsLayer

The routes end at points in the destinations layer.

measurementType

The routes can be determined by measuring travel distance or travel time along street network using different travel modes or by measuring straight line distance.

originsLayerRouteIDField (Optional)

The field in the origins layer containing the IDs that are used to match an origin with a destination.

destinationsLayerRouteIDField (Optional)

The field in the destinations layer containing the IDs that are used to match an origin with a destination.

timeOfDay (Optional)

When measurementType is DrivingTime, this value specifies the time of day to be used for driving time calculations based on traffic. WalkingTime and TruckingTime measurementType do not support calculations based on traffic.

timeZoneForTimeOfDay (Optional)

Determines if the value specified for timeOfDay is specified in UTC or in a time zone that is local to the location of the origins.

outputName (Optional)

Additional properties such as output feature service name.

context (Optional)

Additional settings such as processing extent and output spatial reference.

includeRouteLayers (Optional)

pointBarrierLayer (Optional)

Specify one or more points to act as temporary restrictions or represent additional time or distance that may be required to travel on the underlying streets.

lineBarrierLayer (Optional)

Specify one or more lines that prohibit travel anywhere the lines intersect the streets.

polygonBarrierLayer (Optional)

Specify polygons that either completely restrict travel or proportionately scale the time or distance required to travel on the streets intersected by the polygons.

routeShape (Optional)

Specify the shape of the line connecting origins to their destinations.

Code Samples

Tags

Origin-Destination pairs, OD pairs

Credits

Use limitations