1 xml.instruct! :xml, :version => "1.0"
2 xml.osm(OSM::API.new.xml_root_attributes) do |osm|
4 api.version(:minimum => API_VERSION.to_s, :maximum => API_VERSION.to_s)
5 api.area(:maximum => MAX_REQUEST_AREA.to_s)
6 api.note_area(:maximum => MAX_NOTE_REQUEST_AREA.to_s)
7 api.tracepoints(:per_page => TRACEPOINTS_PER_PAGE.to_s)
8 api.waynodes(:maximum => MAX_NUMBER_OF_WAY_NODES.to_s)
9 api.changesets(:maximum_elements => Changeset::MAX_ELEMENTS.to_s)
10 api.timeout(:seconds => API_TIMEOUT.to_s)
11 api.status(:database => @database_status.to_s,
12 :api => @api_status.to_s,
13 :gpx => @gpx_status.to_s)
15 osm.policy do |policy|
16 policy.imagery do |imagery|
17 IMAGERY_BLACKLIST.each do |url_regex|
18 imagery.blacklist(:regex => url_regex.to_s)