mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
[android] Improve AA route simulator.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include "geometry/point_with_altitude.hpp"
|
||||
|
||||
#include "std/boost_container_hash.hpp"
|
||||
#include "geometry/mercator.hpp"
|
||||
|
||||
#include <boost/functional/hash.hpp>
|
||||
|
||||
#include <sstream>
|
||||
|
||||
@@ -26,6 +28,11 @@ bool PointWithAltitude::operator<(PointWithAltitude const & r) const
|
||||
return m_altitude < r.m_altitude;
|
||||
}
|
||||
|
||||
ms::LatLon PointWithAltitude::ToLatLon() const
|
||||
{
|
||||
return ms::LatLon(mercator::YToLat(m_point.y), mercator::XToLon(m_point.x));
|
||||
}
|
||||
|
||||
std::string DebugPrint(PointWithAltitude const & r)
|
||||
{
|
||||
std::ostringstream ss;
|
||||
|
||||
Reference in New Issue
Block a user