Give up after reporting that the query found too many nodes.
This commit is contained in:
parent
f601f014ca
commit
7f92d533d0
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ class ApiController < ApplicationController
|
|||
|
||||
if node_ids.length > 50_000
|
||||
report_error("You requested too many nodes (limit is 50,000). Either request a smaller area, or use planet.osm")
|
||||
return
|
||||
end
|
||||
|
||||
if node_ids.length == 0
|
||||
|
|
Loading…
Add table
Reference in a new issue