blob: b6f26f90ddd0caf9e5b2e9ac7c44794eb1389528 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma once
#include "openlr/openlr_model.hpp"
#include "geometry/mercator.hpp"
#include "geometry/point2d.hpp"
#include "std/cstdint.hpp"
namespace openlr
{
struct WayPoint final
{
WayPoint() = default;
WayPoint(openlr::LocationReferencePoint const & lrp)
: m_point(MercatorBounds::FromLatLon(lrp.m_latLon))
, m_distanceToNextPointM(lrp.m_distanceToNextPoint)
, m_bearing(lrp.m_bearing)
, m_lfrcnp(lrp.m_functionalRoadClass)
{
}
m2::PointD m_point = m2::PointD::Zero();
double m_distanceToNextPointM = 0.0;
uint8_t m_bearing = 0;
openlr::FunctionalRoadClass m_lfrcnp = openlr::FunctionalRoadClass::NotAValue;
};
} // namespace openlr
|