mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
34
routing/routing_result_graph.hpp
Normal file
34
routing/routing_result_graph.hpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
|
||||
#include "routing/loaded_path_segment.hpp"
|
||||
#include "routing/turn_candidate.hpp"
|
||||
|
||||
#include "geometry/point_with_altitude.hpp"
|
||||
|
||||
namespace routing
|
||||
{
|
||||
namespace turns
|
||||
{
|
||||
/*!
|
||||
* \brief The IRoutingResult interface for the routing result. Uncouple router from the
|
||||
* annotation code that describes turns. See routers for detail implementations.
|
||||
*/
|
||||
class IRoutingResult
|
||||
{
|
||||
public:
|
||||
/// \returns information about all route segments.
|
||||
virtual TUnpackedPathSegments const & GetSegments() const = 0;
|
||||
/// \brief For a |segmentRange|, |junctionPoint| and |ingoingPoint| (point before the |junctionPoint|)
|
||||
/// this method computes number of ingoing ways to |junctionPoint| and fills |outgoingTurns|.
|
||||
/// \note This method should not be called for |segmentRange| of fake edges.
|
||||
/// So method |segmentRange.IsClear()| should return false.
|
||||
virtual void GetPossibleTurns(SegmentRange const & segmentRange, m2::PointD const & junctionPoint,
|
||||
size_t & ingoingCount, TurnCandidates & outgoingTurns) const = 0;
|
||||
virtual double GetPathLength() const = 0;
|
||||
virtual geometry::PointWithAltitude GetStartPoint() const = 0;
|
||||
virtual geometry::PointWithAltitude GetEndPoint() const = 0;
|
||||
|
||||
virtual ~IRoutingResult() = default;
|
||||
};
|
||||
} // namespace routing
|
||||
} // namespace turns
|
||||
Reference in New Issue
Block a user