Add bounds to map responses. Closes #1011.
This commit is contained in:
parent
1e98eb9950
commit
6644f115c9
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue