Data · 1 file
Sample OSM XML File
OpenStreetMap XML with nodes, ways, relations and tags — the format of OSM exports and the editing API.
OSM XML · 937 B
OpenStreetMap XML
An OSM 0.6 extract with tagged nodes, a closed way (a building) and a relation.
CC0 · free for any use · Verified by an independent tool · Report a problem
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="samplefiles.com">
<bounds minlat="51.5000" minlon="-0.1260" maxlat="51.5020" maxlon="-0.1230"/>
<node id="1" version="1" lat="51.5007000" lon="-0.1246000"/>
<node id="2" version="1" lat="51.5012000" lon="-0.1246000"/>
<node id="3" version="1" lat="51.5012000" lon="-0.1239000"/>
<node id="4" version="1" lat="51.5007000" lon="-0.1239000"/>
<node id="10" version="1" lat="51.5010000" lon="-0.1242000">
<tag k="amenity" v="cafe"/>
<tag k="name" v="Sample Café"/>
</node>
<way id="100" version="1">
<nd ref="1"/>
<nd ref="2"/>
<nd ref="3"/>
<nd ref="4"/>
<nd ref="1"/>
<tag k="building" v="yes"/>
<tag k="name" v="Sample Building"/>
</way>
<relation id="1000" version="1">
<member type="way" ref="100" role="outer"/>
<member type="node" ref="10" role=""/>
<tag k="type" v="site"/>
</relation>File details
Download from the command line
curl -L -o sample.osm https://files.samplefiles.com/data/osm/sample.osmwget https://files.samplefiles.com/data/osm/sample.osmhttps://files.samplefiles.com/data/osm/sample.osmprintf '%s %s\n' bab20b77754011db43cf89bf32497aa8853122bcc7c71c5c5ca695f517adca78 sample.osm | shasum -a 256 -cOr check the download in your browser with the checksum calculator.