ReconstructionMode

public enum ReconstructionMode

Defines the reconstruction mode used for route reconstruction.

Note

This option is not yet supported with the Orbis map.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Reconstruction mode for handling tracks.

    This reconstruction mode should be used when the given polyline comes from a third-party source.

    This mode allows for flexibility when the provided route polyline doesn’t perfectly align with the road network, enabling the reconstruction of the most sensible route. The input polyline may have inconsistencies such as gaps, loops or jitter (missing or duplicated points on polyline).

    Declaration

    Swift

    case track
  • Reconstruction mode for reconstructing previously planned routes.

    This reconstruction mode should be used when the given polyline originates from a route previously planned by the same planner.

    The goal is to reconstruct the given route as closely as possible to the provided route polyline while adhering to driving and legal restrictions. The input polyline is expected to be normalized (aligned with the road network present on the map), without any loops or gaps. In cases where there are road restrictions on the input path, the algorithm will attempt to find a local detour to accommodate these restrictions.

    The resulting reconstructed route accurately follows the road network and complies with driving restrictions.

    Declaration

    Swift

    case route
  • Reconstruction mode for updating previously planned routes.

    This reconstruction mode should be used when the given polyline originates from a route previously planned by the same planner on the same map.

    The goal is to reconstruct the given route as closely as possible to the provided route polyline ignoring driving and legal restrictions in order to keep the input polyline geometry stable. The input polyline is expected to be normalized (aligned with the road network present on the map), without any loops or gaps.

    The resulting reconstructed route accurately follows the road network but could be illegal due to potential violation of driving restrictions.

    Declaration

    Swift

    case update