<p>Instead of responding to ovesized map calls with an error message, we could do a redirect to Overpass. Please see the patch below:</p>
<p>From <a href="https://github.com/openstreetmap/openstreetmap-website/commit/fb1631fef0decf1122f486df8c14721fa3866162" class="commit-link"><tt>fb1631f</tt></a> Mon Sep 17 00:00:00 2001<br>
From: Roland Olbricht <a href="mailto:roland.olbricht@gmx.de">roland.olbricht@gmx.de</a><br>
Date: Fri, 6 Dec 2013 08:13:43 +0100<br>
Subject: [PATCH] Redirect oversized map calls.</p>
<hr><p>app/controllers/api_controller.rb | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)</p>
<p>diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb<br>
index 2c442c1..a826dff 100644<br>
--- a/app/controllers/api_controller.rb<br>
+++ b/app/controllers/api_controller.rb<br>
@@ -131,7 +131,7 @@ class ApiController < ApplicationController</p>
<pre><code> node_ids = @nodes.collect(&:id)
if node_ids.length > MAX_NUMBER_OF_NODES
</code></pre>
<ul>
<li> report_error("You requested too many nodes (limit is #{MAX_NUMBER_OF_NODES}). Either request a smaller area, or use planet.osm")</li>
<li> redirect_to "<a href="http://overpass-api.de/api/map?bbox=#%7Bbbox.min_lon%7D,#%7Bbbox.min_lat%7D,#%7Bbbox.max_lon%7D,#%7Bbbox.max_lat%7D">http://overpass-api.de/api/map?bbox=#{bbox.min_lon},#{bbox.min_lat},#{bbox.max_lon},#{bbox.max_lat}</a>"
return
end
if node_ids.length == 0
--
1.7.9.5</li>
</ul>
<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/632'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpqGBk7nCScIEVss36gvuTf28UV152YLJBhDFeL3H4blx.gif' height='1' width='1'></p>