## -*- coding: UTF-8 -*- % if not c.wrap: ${next.body()} % else: ${h.if_ie('')} byCycle.org - Bicycle Trip Planner - ${self.region_title()} ${h.stylesheet_link('/stylesheets/base.css')} ${h.if_ie(h.stylesheet_link('/stylesheets/base_ie.css'))} ${h.stylesheet_link('/javascripts/OpenLayers-2.6/theme/default/style.css')} ${h.stylesheet_link('/stylesheets/print.css', media='print')} ${self.stylesheet_links()}
  • Search the Map
    Enter an address or intersection -OR- pick a location from the map.
    % if c.service == 'geocodes' and c.http_status == 200:
    ${self.json()} ${next.body()}
    % endif
  • Find a Route



    Enter your start and end addresses and, optionally, select a route type.
    % if c.service == 'routes' and c.http_status == 200:
    ${self.json()} ${next.body()}
    % endif

    Disclaimer: As you are riding, please keep in mind that you don't have to follow the suggested route. It may not be safe at any given point. If you see what looks like an unsafe or undesirable stretch in the suggested route, you can decide to walk, ride on the sidewalk, or go a different way.

    Users should independently verify all information presented here. This service is provided AS IS with NO WARRANTY of any kind.

  • Errors
    ${h.image('spinner.gif', width=16, height=16, alt='Click to hide')}
    ${h.javascript_link('/javascripts/jquery.js', '/javascripts/jquery-ui.js')} ${h.javascript_link('/javascripts/util.js', '/javascripts/bycycle.js')} ${h.javascript_link('/javascripts/map.js')} ${h.javascript_link('/javascripts/ui.js', '/javascripts/regions.js')} ${h.javascript_link('/javascripts/query.js', '/javascripts/result.js')} <%include file="/widgets/center_marker.html" /> ##<%include file="_google_analytics.html" /> <%namespace file="/widgets/fixed-pane.html" import="fixed_pane" /> <%def name="region_title()"> ${c.region.title if c.region else 'Select a region'} <%def name="stylesheet_links()"> <%def name="input_container(classes=[])">
    % if caller: ${caller.body()} % endif
    <%def name="links()"> <%def name="result_pane(classes=[])">
    % if caller: ${caller.body()} % endif
    <%def name="map_controls()"> <%def name="javascript_includes()"> <%def name="javascript()"> <%def name="errors()">

    ${getattr(c.exception, 'title', 'Error')}

    % if hasattr(c.exception, 'errors'): % for error in c.exception.errors:

    ${error}

    % endfor % else:

    ${c.exception.description}

    % endif <% explanation = getattr(c.exception, 'explanation', None) %> % if explanation is not None:

    What This Means

    ${explanation.strip().replace('\n', '

    ')}

    % endif
    <%def name='route_pref()'> % if c.region.slug == 'portlandor': % endif <%def name="json()"> % if c.format != 'json': ${h.hidden_field(None, value=c.json, class_='json')} % endif % endif ## if not c.wrap