<p>Aha, that's good.</p>

<blockquote>
<p>That logic was added in Dec 2014, so it might be newer than osm.org's decision to use Z14.</p>
</blockquote>

<p>Indeed - the initial PR for routing on osm.org was in March 2014: <a href="https://github.com/openstreetmap/openstreetmap-website/pull/716" class="issue-link" title="Routing">#716</a> .</p>

<p>Thinking it through today, I'm still sceptical about rerequesting whenever the user zooms/pans, but I wonder if osm.org should perhaps select zoom level based on great-circle distance between start and end points: z14 is probably a reasonable default for a trans-America route, z18 is probably good for home-to-shops. A compromise, yes, but perhaps a reasonable one.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1077#issuecomment-151212118">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLaLDihLvGskkJStEtFcXldBIDLVaks5o_lX8gaJpZM4GVDtH.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/1077#issuecomment-151212118"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>