Skip to main content Skip to complementary content

Routes

Routes calculates routes between two locations in a dataset, including length and duration.

Example of Routes

A map displaying routes between points.

Routes supports the following transportation modes:

  • Bird: Generates arcs between origins and destinations.

  • Car: Creates routes along roads with car restrictions. Only supported for point datasets.

  • Bike: Creates routes along roads with bike restrictions. Only supported for point datasets.

  • Pedestrian: Creates routes along roads with pedestrian restrictions. Only supported for point datasets.

  • Truck: Creates routes along roads with truck restrictions. Only supported for point datasets.

Routes returns the following fields:

  • <dataset key field>: The key field from the input dataset.

  • Distance: The route distance in meters.

  • Duration: The estimated route travel time in seconds.

  • Status: The returned status is either ok or failed: followed by an error message.

  • LowResLine: A low resolution version of the route line.

  • All fields except the key field from the input dataset, prefixed with the dataset name.

  1. Under Data connections, click Select data on your Qlik GeoOperations connection.

  2. Under Operation, select Routes.

  3. Under Criteria, select Fastest route or Shortest route.

  4. Under Transportation mode, select the mode used to calculate the route.

  5. Under Destination field, select the destinations used when calculating routes.

  6. Under Destination field type, select the type of data in the destination field.

  7. If you selected Named point as the Destination field type, under Location suffix, optionally add a suffix to append to the field values.

    This is useful to specify more information to server-based location services such as country code or type. For example, with the following suffix all items are specified to be cities in Sweden: ,SE:city.

    For more information on what syntax to use, see Location service.

  8. Under Dataset 1, select the type of data source to use in the operation and its parameters.

    You must specify the origin as the geometry field in the dataset.

    The data types and parameters are the same as those in the Load operation. For information on each of the dataset parameters, see:

  9. Under Tables, select the table to load.

  10. Under Fields, select the fields to load.

  11. Click Insert script.

Learn more

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!