! * \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. */
| 19 | * Postprocessing must read information from the structure and does not initiate disk readings. |
| 20 | */ |
| 21 | struct LoadedPathSegment |
| 22 | { |
| 23 | std::vector<geometry::PointWithAltitude> m_path; |
| 24 | turns::lanes::LanesInfo m_lanes; |
| 25 | RouteSegment::RoadNameInfo m_roadNameInfo; |
| 26 | // double m_weight = 0.0; /*!< Time in seconds to pass the segment. */ |
| 27 | SegmentRange m_segmentRange; |
| 28 | std::vector<Segment> m_segments; /*!< Traffic segments for |m_path|. */ |
| 29 | ftypes::HighwayClass m_highwayClass = ftypes::HighwayClass::Undefined; |
| 30 | bool m_onRoundabout = false; |
| 31 | bool m_isLink = false; |
| 32 | bool m_isOneWay = false; |
| 33 | |
| 34 | bool IsValid() const { return m_path.size() > 1; } |
| 35 | }; |
| 36 | |
| 37 | using TUnpackedPathSegments = std::vector<LoadedPathSegment>; |
| 38 | } // namespace routing |