openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
OldWay#get_nodes_undelete
Read full version of old way For get_nodes_undelete, uses same nodes, even if they've moved since For get_nodes_revert, allocates new ids Currently returns Potlatch-style array where [5] indicates whether latest version is usable as is (boolean) (i.e. is it visible? are we actually reverting to an earlier version?)
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open app/models/old_way.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-OldWay-get_nodes_undelete-for-pr
# Commit to gitgit add app/models/old_way.rbgit commit -m "better docs for OldWay#get_nodes_undelete"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-OldWay-get_nodes_undelete-for-pr
hub pull-request
# Celebrate!