aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-06-16 17:43:44 -0700
committerGravatar GitHub <noreply@github.com>2016-06-16 17:43:44 -0700
commitc2b55afffd16af369a37e5c0738201cf8a5ceebf (patch)
tree35fea3dde58404e6b1ec41bcd1851e91f3cd8b4d /examples
parent2a69beffaae1864bfe22759da742d65c1e044b1f (diff)
parent2961e57007eb74b653a5ebc647dca869ac96ce03 (diff)
Merge pull request #5256 from tamihiro/master
Minor fix on example script
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)