openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
WayController#ways_for_node
returns all the ways which are currently using the node given in the :id parameter. note that this used to return deleted ways as well, but this seemed not to be the expected behaviour, so it was removed.
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open app/controllers/way_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-WayController-ways_for_node-for-pr
# Commit to gitgit add app/controllers/way_controller.rbgit commit -m "better docs for WayController#ways_for_node"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-WayController-ways_for_node-for-pr
hub pull-request
# Celebrate!