#pragma once

#include <maps/wikimap/mapspro/services/mrc/libs/position_improvment/include/events.h>

namespace maps::mrc::pos_improvment {

// Projects gpsEvents to matchedTrack.
// @param matchedTrack - track matched on graph.
// Allows 1 meter shift from matched track.
// Uses only gpsEvents, which have similar direction as the neighboring
// track segment
GpsEvents getProjectionOnMatchedTrack(const GpsEvents& gpsEvents,
                                      const GpsSegments& matchedTrack,
                                      const CarGroundDirectionEvents& directionEvents);

} // namespace maps::mrc::pos_improvment
