openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
Changeset#update_bbox!
expand the bounding box to include the given bounding box. also, expand a little bit more in the direction of the expansion, so that further expansions may be unnecessary. this is an optimisation suggested on the wiki page by kleptog.
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open app/models/changeset.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Changeset-update_bbox--for-pr
# Commit to gitgit add app/models/changeset.rbgit commit -m "better docs for Changeset#update_bbox!"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Changeset-update_bbox--for-pr
hub pull-request
# Celebrate!