aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/python/route_guide
diff options
context:
space:
mode:
authorGravatar Tamihiro Yuzawa <dead6oy@gmail.com>2016-02-16 17:03:18 +0900
committerGravatar tamihiro <dead6oy@gmail.com>2016-02-22 18:29:45 +0900
commit2961e57007eb74b653a5ebc647dca869ac96ce03 (patch)
tree802d25534a5d311729d8840b77711ecf98b8467a /examples/python/route_guide
parent84ef9d75d7a33f6b2bf61709d6229c769cf227b4 (diff)
Fix variable assignment in the example script
Diffstat (limited to 'examples/python/route_guide')
-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 f23b98bf36..eb186838b5 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)