<div dir="ltr"><br clear="all"><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">On Tue, Apr 28, 2015 at 02:11:35PM -0500, Marcelo de Moraes Serpa wrote:</pre></div><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">> Hi list!
>
> I’m wondering if OpenStreetMap provides the shapefiles or geojson for neighbourhoods around the world,<span style="font-family:arial,sans-serif"> specifically the polygon boundaries for them? So far, the most reliable places I’ve found for this data were, in order of</span></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">>reliability: google maps (not open source and the data isn’t available), maponics (commercial API), quattroshapes (from foursquare, open source).
>
>Quattroshapes is not bad, and has quite a few neighborhoods polygons for major cities around the world, however I’d still like to know if OpenStreetMap also provides this data? If so, where could I fetch it from?
>
> Thanks!
>
> — Marcelo</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Hey Marcelo,</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">I've been working on an admin boundary extraction tool for OSM. The goal is to make these geojson files available for download via <a href="http://mapzen.com">mapzen.com</a> similarly to metro extracts (<a href="https://mapzen.com/metro-extracts">https://mapzen.com/metro-extracts</a>). We aren't there just yet, but the extraction tool is in npm and you can easily make your own extract of whatever region you need.</pre><pre style><font color="#000000"><span style="white-space:pre-wrap"><a href="https://github.com/pelias/fences-cli">https://github.com/pelias/fences-cli</a><br></span></font></pre><pre style><pre><font color="#000000"><span style="white-space:pre-wrap">npm install -g fences</span></font></pre></pre><pre style><font color="#000000"><span style="white-space:pre-wrap">touch regions.json</span></font></pre><pre style><font color="#000000"><span style="white-space:pre-wrap">{
  "regions": [
    {
     "name": "USA",
      "box": {
        "left": -124.848974,
        "bottom": 24.396308
        "right": -66.885444,
        "top": 49.384358
      }
    }
  ]
}</span></font></pre><pre style><font color="#000000"><span style="white-space:pre-wrap">fences create planet-latest.pbf regions.json /tmp/fences-results/</span></font></pre><pre style><font color="#000000"><span style="white-space:pre-wrap">What you get in /tmp/fences-results/ are geojson files with polygons that have "boundary"="administrative" and "admin_level"=*. There should be the full planet set of results as well a directory for each region you've defined in the regions.json file.</span></font></pre><pre style><font color="#000000"><span style="white-space:pre-wrap">There is a github issue to add "place"="neighborhood" as well, but they aren't currently being extracted. You can easily just make the addition in the code though, if you need them quickly.</span></font></pre><pre style><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Cheers,</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Diana</pre></div><div class="gmail_signature"><div dir="ltr"><div><br></div></div></div>
</div>