## -*- coding: UTF-8 -*-
<%inherit file="layout.html"/>
<%! from urllib import unquote_plus %>
<%namespace file="/widgets/fixed-pane.html" import="fixed_pane" />
<%
route = c.route
distance = route.distance
total_mi = distance['miles']
total_km = distance['kilometers']
start = route.start['geocode']
s_addr = start.address
end = route.end['geocode']
e_addr = end.address
directions = route.directions
linestring = route.linestring_ll
centroid = linestring.centroid()
s_addr = str(s_addr).replace('\n', '
')
e_addr = str(e_addr).replace('\n', '
')
last_street = e_addr.split('
', 1)[0]
s_url_str = start.urlStr()
e_url_str = end.urlStr()
tab = ' '
set_center_onclick = 'byCycle.UI.map.setCenter({x: %s, y: %s}); return false;'
map_blowup_href = "#show-map-blowup"
map_blowup_onclick = "byCycle.UI.map.showMapBlowup({x: %s, y: %s}); return false;"
%>
<%call expr="fixed_pane()">
<%def name="title()">
Route
show on map
%def>