Route sections

Route sections are parts of a planned route that have specific characteristics, such as ferry crossings, motorway sections, or areas with traffic incidents. Using sections, you can show users where these elements are located along a planned route.

The Sections object contains a list of parameters for each Section .

Read more about route planning in the Planning routes guide.

You can find the list of section types further in this guide.

Each returned section has three basic properties:

  • A list of geometries representing the section.
  • The distance from the start of the route to the section.
  • The length of the section, in meters.

Some specific section types also return additional information about the section.

Basic section types

The following section types are always included in a response:

Section types for extended guidance

The following section types for extended guidance are included in a response if they are requested using GuidanceOptions.extendedSections :

  • SectionType.Lanes - Represents a route section with lane section available. It additionally provides:
    • Information about the Lane and Direction the driver should follow.
    • Information about the lane separators.
  • SectionType.SpeedLimit - Represents a route section with a speed limit.
    • Provides the speed limit in km/h.
  • SectionType.RoadShields - Represents a route section with road shield information.
    • Provides a reference to the road shield with the shield content.

Route with traffic sections

Next steps

Since you have learned how to work with route sections, here are recommendations for the next steps: