openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
AmfController#deleteway
Delete way and all constituent nodes. Params: * The user token * the changeset id * the id of the way to change * the version of the way that was downloaded * a hash of the id and versions of all the nodes that are in the way, if any of the nodes have been changed by someone else then, there is a problem! Returns 0 (success), unchanged way id, new way version, new node versions.
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open app/controllers/amf_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-AmfController-deleteway-for-pr
# Commit to gitgit add app/controllers/amf_controller.rbgit commit -m "better docs for AmfController#deleteway"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-AmfController-deleteway-for-pr
hub pull-request
# Celebrate!