openstreetmap-website

https://github.com/openstreetmap/openstreetmap-website

Ruby

The Rails application that powers OpenStreetMap

Way#to_xml

Find a way given it's ID, and in a single SQL call also grab its nodes and tags

Source | Google | Stack overflow

Edit

git clone [email protected]:openstreetmap/openstreetmap-website.git

cd openstreetmap-website

open app/models/way.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Way-to_xml-for-pr


# Commit to git

git add app/models/way.rbgit commit -m "better docs for Way#to_xml"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Way-to_xml-for-pr

hub pull-request


# Celebrate!