Skip to content

Directions from 2 Point-Layers

This algorithm calculates optimal routes for multiple start and end points based on the input files.

Toolbox ButtonToolbox

PreviewPreview

Parameters

Provider

Select the openrouteservice provider you want to use.

Travel Mode

Select mode of travel.

Options
  • driving-car
  • driving-hgv
  • cycling-regular
  • cycling-road
  • cycling-mountain
  • cycling-electric
  • foot-walking
  • foot-hiking
  • wheelchair

A detailed description of this can be viewed here

Input Start Point Layer

Select a point layer (Not MultiPoint) to serve as starting points for the route calculation.

Start ID Field

Select a field that will be appended to the output route layer, to later be able to join it with the input start point layer.

Sort start points by

Select a field to sort start layer points by. The correspondence between startpoints and endpoints is specified by this order (Be aware of the field type! Text fields will be sorted like 1,13,2,D,a,x).

Input Endpoint Layer

Select a point layer (Not MultiPoint) to serve as ending points for the route calculation.

End ID Field

Select a field that will be appended to the output route layer, to later be able to join it with the input end point layer.

Sort End Points by

Select a field to sort end layer points by. The correspondence between endpoints and startpoints is specified by this order (Be aware of the field type! Text fields will be sorted like 1,13,2,D,a,x).

Travel Preference

Dictates the cost. For longer routes don't use Shortest Path.

Options
  • fastest
  • shortest
  • recommended

Layer Mode

Either 'row-by-row' until one layers has no more features or 'all-by-all' for every feature combination.

Directions(Output)

Specify a path, where the layer will be saved. Leaving this empty will result in a temporary layer.

Advanced Parameters

These are optional parameters you can use to avoid certain areas.

Features to Avoid

You can make your route avoid particular features. Specify them here.

Options
  • Highways
  • Tollways
  • Ferries
  • Fords
  • Steps

Types of borders to avoid

Specify which type of border crossing to avoid.

Options
  • all
  • controlled

Comma-separated list of ids of countries to avoid

List of countries to exclude from route with driving-* profiles. Can be used together with 'avoid_borders': 'controlled'. [ 11, 193 ] would exclude Austria and Switzerland. List of countries and application examples can be found here. Also, ISO standard country codes cna be used in place of the numerical ids, for example, DE or DEU for Germany.

Polygons to avoid

You can make your route avoid particular polygons from your layers. Specify them here.