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

Source | Google | Stack overflow

Edit

git clone [email protected]:openstreetmap/openstreetmap-website.git

cd openstreetmap-website

open app/controllers/api_controller.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ApiController-capabilities-for-pr


# Commit to git

git add app/controllers/api_controller.rbgit commit -m "better docs for ApiController#capabilities"


# Open pull request

gem 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!