Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
38
libs/routing/loaded_path_segment.hpp
Normal file
38
libs/routing/loaded_path_segment.hpp
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#pragma once
|
||||
|
||||
#include "routing/lanes/lane_info.hpp"
|
||||
#include "routing/route.hpp"
|
||||
#include "routing/segment.hpp"
|
||||
#include "routing/turns.hpp"
|
||||
|
||||
#include "indexer/ftypes_matcher.hpp"
|
||||
|
||||
#include "geometry/point_with_altitude.hpp"
|
||||
|
||||
#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;
|
||||
turns::lanes::LanesInfo 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue