projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e98eb9
)
Add bounds to map responses. Closes #1011.
author
Tom Hughes
<tom@compton.nu>
Tue, 8 Jul 2008 09:52:08 +0000
(09:52 +0000)
committer
Tom Hughes
<tom@compton.nu>
Tue, 8 Jul 2008 09:52:08 +0000
(09:52 +0000)
app/controllers/api_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/api_controller.rb
b/app/controllers/api_controller.rb
index 9cf8977d332de0bfbf246ca126308cc1192160e2..8b735600d38e465f267295e0b93dfc7e7072906d 100644
(file)
--- a/
app/controllers/api_controller.rb
+++ b/
app/controllers/api_controller.rb
@@
-126,6
+126,14
@@
class ApiController < ApplicationController
doc = OSM::API.new.get_xml_doc
+ # add bounds
+ bounds = XML::Node.new 'bounds'
+ bounds['minlat'] = min_lat.to_s
+ bounds['minlon'] = min_lon.to_s
+ bounds['maxlat'] = max_lat.to_s
+ bounds['maxlon'] = max_lon.to_s
+ doc.root << bounds
+
# get ways
# find which ways are needed
ways = Array.new