mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-04 03:43:46 +00:00
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
This commit is contained in:
27
openlr/way_point.hpp
Normal file
27
openlr/way_point.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user