Route

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 on the same map.

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.