]> git.openstreetmap.org Git - rails.git/blob - app/views/api/capabilities/show.builder
Merge pull request #5362 from AntonKhorev/color-mode-preference-map
[rails.git] / app / views / api / capabilities / show.builder
1 xml.instruct! :xml, :version => "1.0"
2 xml.osm(OSM::API.new.xml_root_attributes) do |osm|
3   osm.api do |api|
4     api.version(:minimum => Settings.api_version, :maximum => Settings.api_version)
5     api.area(:maximum => Settings.max_request_area)
6     api.note_area(:maximum => Settings.max_note_request_area)
7     api.tracepoints(:per_page => Settings.tracepoints_per_page)
8     api.waynodes(:maximum => Settings.max_number_of_way_nodes)
9     api.relationmembers(:maximum => Settings.max_number_of_relation_members)
10     api.changesets(:maximum_elements => Changeset::MAX_ELEMENTS,
11                    :default_query_limit => Settings.default_changeset_query_limit,
12                    :maximum_query_limit => Settings.max_changeset_query_limit)
13     api.notes(:default_query_limit => Settings.default_note_query_limit,
14               :maximum_query_limit => Settings.max_note_query_limit)
15     api.timeout(:seconds => Settings.api_timeout)
16     api.status(:database => @database_status,
17                :api => @api_status,
18                :gpx => @gpx_status)
19   end
20   osm.policy do |policy|
21     policy.imagery do |imagery|
22       Settings.imagery_blacklist.each do |url_regex|
23         imagery.blacklist(:regex => url_regex.to_s)
24       end
25     end
26   end
27 end