Files
comaps/routing/loaded_path_segment.hpp
Konstantin Pastbin e3e4a1985a 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
2025-05-08 21:10:51 +07:00

41 lines
1.2 KiB
C++

#pragma once
#include "routing/road_point.hpp"
#include "routing/turns.hpp"
#include "routing/segment.hpp"
#include "routing/route.hpp"
#include "routing/maxspeeds.hpp"
#include "indexer/ftypes_matcher.hpp"
#include "geometry/point_with_altitude.hpp"
#include <string>
#include <vector>
namespace routing
{
/*!
* \brief The LoadedPathSegment struct is a representation of a single node path.
* It unpacks and stores information about path and road type flags.
* Postprocessing must read information from the structure and does not initiate disk readings.
*/
struct LoadedPathSegment
{
std::vector<geometry::PointWithAltitude> m_path;
std::vector<turns::SingleLaneInfo> m_lanes;
RouteSegment::RoadNameInfo m_roadNameInfo;
//double m_weight = 0.0; /*!< Time in seconds to pass the segment. */
SegmentRange m_segmentRange;
std::vector<Segment> m_segments; /*!< Traffic segments for |m_path|. */
ftypes::HighwayClass m_highwayClass = ftypes::HighwayClass::Undefined;
bool m_onRoundabout = false;
bool m_isLink = false;
bool m_isOneWay = false;
bool IsValid() const { return m_path.size() > 1; }
};
using TUnpackedPathSegments = std::vector<LoadedPathSegment>;
} // namespace routing