openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
AmfController#getway_old
Get an old version of a way, and all constituent nodes. For undelete (version<0), always uses the most recent version of each node, even if it's moved. For revert (version >= 0), uses the node in existence at the time, generating a new id if it's still visible and has been moved/ retagged. Returns: 0. success code, 1. id, 2. array of points, 3. hash of tags, 4. version, 5. is this the current, visible version? (boolean)
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-getway_old-for-pr
# Commit to gitgit add app/controllers/amf_controller.rbgit commit -m "better docs for AmfController#getway_old"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-AmfController-getway_old-for-pr
hub pull-request
# Celebrate!