aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2016-06-17 16:01:57 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2016-06-17 16:01:57 -0700
commit9790e97704161cdd9a476d61a5568283727fe611 (patch)
tree9708365cb8a7aec0c99f5d006ca42c91a634f3b8 /examples
parent955a364e340cc1954938ae2269693b0a57bec389 (diff)
parent02db1e43240fbfb77e57c70d1d59e5bd6d537e4a (diff)
Merge remote-tracking branch 'upstream/master' into handler_http_response
Diffstat (limited to 'examples')
-rw-r--r--examples/python/route_guide/route_guide_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/route_guide/route_guide_server.py b/examples/python/route_guide/route_guide_server.py
index 24f948c42c..2d8b33ac17 100644
--- a/examples/python/route_guide/route_guide_server.py
+++ b/examples/python/route_guide/route_guide_server.py
@@ -51,7 +51,7 @@ def get_distance(start, end):
coord_factor = 10000000.0
lat_1 = start.latitude / coord_factor
lat_2 = end.latitude / coord_factor
- lon_1 = start.latitude / coord_factor
+ lon_1 = start.longitude / coord_factor
lon_2 = end.longitude / coord_factor
lat_rad_1 = math.radians(lat_1)
lat_rad_2 = math.radians(lat_2)