openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
ApiController#capabilities
External apps that use the api are able to query the api to find out some parameters of the API. It currently returns: * minimum and maximum API versions that can be used. * maximum area that can be requested in a bbox request in square degrees * number of tracepoints that are returned in each tracepoints page
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open app/controllers/api_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ApiController-capabilities-for-pr
# Commit to gitgit add app/controllers/api_controller.rbgit commit -m "better docs for ApiController#capabilities"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ApiController-capabilities-for-pr
hub pull-request
# Celebrate!