title: How can I get a list of (lat, lon) pairs for a way in a single call to the OSM API?
body: <p>Given the ID of a Way in OSM, I'd like to get a list of (lat, lon) pairs.</p>
  
  <p>If I request the way via the standard API, I get a list of Node IDs:</p>
  
  <pre><code>$ curl 'http://www.openstreetmap.org/api/0.6/way/158602261'
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;osm version="0.6" ...&gt;
   &lt;way id="158602261" visible="true" ...&gt;
    &lt;nd ref="295505187"/&gt;
    &lt;nd ref="1736599935"/&gt;
    &lt;nd ref="295505112"/&gt;
    ...
  &lt;/osm&gt;
  </code></pre>
  
  <p>I can then do follow-up queries for each of these nodes:</p>
  
  <pre><code>$ curl 'http://www.openstreetmap.org/api/0.6/node/295505187'
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;osm version="0.6" ...&gt;
    &lt;node id="295505187" visible="true" ... lat="37.7702484" lon="-122.5107188"/&gt;
  &lt;/osm&gt;
  </code></pre>
  
  <p>But this will require many API requests, one per node in the path.</p>
  
  <p>Is it possible to get the list of lat/lons using fewer API calls? Just one call would be ideal.</p>