projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
220ad0a
)
return blank <osm> if no nodes found
author
Steve Coast
<steve@asklater.com>
Tue, 8 May 2007 07:53:39 +0000
(07:53 +0000)
committer
Steve Coast
<steve@asklater.com>
Tue, 8 May 2007 07:53:39 +0000
(07:53 +0000)
app/controllers/api_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/api_controller.rb
b/app/controllers/api_controller.rb
index bb135a01f55a7733de3fb75f22a54848844007bf..820a5cb6615fe0bfe009a9ed16c7c8d94628abeb 100644
(file)
--- a/
app/controllers/api_controller.rb
+++ b/
app/controllers/api_controller.rb
@@
-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