Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
26
tools/openlr/way_point.hpp
Normal file
26
tools/openlr/way_point.hpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
#include "openlr/openlr_model.hpp"
|
||||
|
||||
#include "geometry/mercator.hpp"
|
||||
#include "geometry/point2d.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace openlr
|
||||
{
|
||||
struct WayPoint final
|
||||
{
|
||||
explicit WayPoint(openlr::LocationReferencePoint const & lrp)
|
||||
: m_point(mercator::FromLatLon(lrp.m_latLon))
|
||||
, m_distanceToNextPointM(lrp.m_distanceToNextPoint)
|
||||
, m_bearing(lrp.m_bearing)
|
||||
, m_lfrcnp(lrp.m_functionalRoadClass)
|
||||
{}
|
||||
|
||||
m2::PointD m_point;
|
||||
double m_distanceToNextPointM = 0.0;
|
||||
uint8_t m_bearing = 0;
|
||||
openlr::FunctionalRoadClass m_lfrcnp = openlr::FunctionalRoadClass::NotAValue;
|
||||
};
|
||||
} // namespace openlr
|
||||
Loading…
Add table
Add a link
Reference in a new issue