Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2016-10-04 19:17:18 +0300
committerMaxim Pimenov <m@maps.me>2016-10-12 14:12:05 +0300
commitd08a086c592c57c8a0bb1f85233e4405dadc69de (patch)
treeff5148c8cb71d575a418bbfb7dcf8fae42b9fd76 /geometry
parentb624f9f227a25e0720f2a453b29edc0b80f5c259 (diff)
[coding] Added a serialization method for traffic coords.
Diffstat (limited to 'geometry')
-rw-r--r--geometry/latlon.cpp5
-rw-r--r--geometry/latlon.hpp5
2 files changed, 10 insertions, 0 deletions
diff --git a/geometry/latlon.cpp b/geometry/latlon.cpp
index eefcd02386..636a91c054 100644
--- a/geometry/latlon.cpp
+++ b/geometry/latlon.cpp
@@ -4,6 +4,11 @@
namespace ms
{
+// static
+double const LatLon::kMinLat = -90;
+double const LatLon::kMaxLat = 90;
+double const LatLon::kMinLon = -180;
+double const LatLon::kMaxLon = 180;
string DebugPrint(LatLon const & t)
{
diff --git a/geometry/latlon.hpp b/geometry/latlon.hpp
index dd9b30d834..3204eec693 100644
--- a/geometry/latlon.hpp
+++ b/geometry/latlon.hpp
@@ -11,6 +11,11 @@ namespace ms
class LatLon
{
public:
+ static double const kMinLat;
+ static double const kMaxLat;
+ static double const kMinLon;
+ static double const kMaxLon;
+
double lat, lon;
/// Does NOT initialize lat and lon. Allows to use it as a property of an ObjC class.