return blank <osm> if no nodes found
This commit is contained in:
parent
220ad0a6b6
commit
ec328801e9
1 changed files with 5 additions and 0 deletions
|
@ -60,6 +60,11 @@ class ApiController < ApplicationController
|
|||
report_error("You requested too many nodes (limit is 50,000). Either request a smaller area, or use planet.osm")
|
||||
end
|
||||
|
||||
if node_ids.length == 0
|
||||
render :text => '<osm></osm>'
|
||||
return
|
||||
end
|
||||
|
||||
# grab the segments
|
||||
segments = Array.new
|
||||
if node_ids.length > 0
|
||||
|
|
Loading…
Add table
Reference in a new issue