From a121283f0f1c3ea73d294533e29afba48dbb821a Mon Sep 17 00:00:00 2001 From: jorgbrown Date: Fri, 6 Mar 2015 14:45:10 -0800 Subject: [PATCH 1/2] Use (latitude, longitude), not (latitude, latitude) --- cpp/cpptutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/cpptutorial.md b/cpp/cpptutorial.md index f6cd57bb68c..01eff071088 100644 --- a/cpp/cpptutorial.md +++ b/cpp/cpptutorial.md @@ -298,7 +298,7 @@ Now let's look at our streaming methods. If you've already read [Creating the se std::cout << "Found feature called " << feature.name() << " at " << feature.location().latitude()/kCoordFactor_ << ", " - << feature.location().latitude()/kCoordFactor_ << std::endl; + << feature.location().longitude()/kCoordFactor_ << std::endl; } Status status = reader->Finish(); ``` From d421801e177ff3c51bd86d9f9c1e0f1036a1562f Mon Sep 17 00:00:00 2001 From: jorgbrown Date: Fri, 6 Mar 2015 15:00:58 -0800 Subject: [PATCH 2/2] Use (latitude, longitude), not (latitude, latitude) --- cpp/route_guide/route_guide_client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/route_guide/route_guide_client.cc b/cpp/route_guide/route_guide_client.cc index cbf420780d6..0257affca07 100644 --- a/cpp/route_guide/route_guide_client.cc +++ b/cpp/route_guide/route_guide_client.cc @@ -120,7 +120,7 @@ class RouteGuideClient { std::cout << "Found feature called " << feature.name() << " at " << feature.location().latitude()/kCoordFactor_ << ", " - << feature.location().latitude()/kCoordFactor_ << std::endl; + << feature.location().longitude()/kCoordFactor_ << std::endl; } Status status = reader->Finish(); if (status.IsOk()) {