<div dir="ltr"><div><div><div>Hi everyone,<br><br></div>Talking with some of the Akademy 2013 atendees last week in Bilbao, we wanted to have a GeoJSON vector tile server to use it in Marble. So we built one where tiles are <b>generated and server by NodeJS</b>.<br>
<br>I know that OpenStreetMap.us has some GeoJSON tiles but they are separated in different layers (roads, buildings...). This server creates tiles with all type of data (filtered by zoom levels) and if needed, anyone can <b>change the queries to PostGIS</b> to extract whatever it wants ( <i><a href="https://github.com/AnderPijoan/vectorosm/blob/master/tileCreator/queryCreator.js">https://github.com/AnderPijoan/vectorosm/blob/master/tileCreator/queryCreator.js</a></i> ).<br>
<br><br></div><div>Currently tiles are generated once and then by specifing Node's public folder, users can access them directly. <br><br><i><a href="http://energia.deusto.es:8001/">http://energia.deusto.es:8001/</a>tiles/18/128227/100207.json</i><br>
<br>So for creating the tiles there are some GET methods:<br></div><div><br><i>/generate/:zoom/:x/:y</i><br><br><i>/generate/zoom/from/:from/to/:to</i><br><br><i>/generate/zoom/:zoom</i><br><br><i>/generate/bbox/:zoom/:left/:top/:right/:bottom</i><br>
<br></div><div>An
 improvement could be to add a route ( /tiles/:z/:x/:y.json ) to get 
when someone asked for a tile and if it doesn't exist, generate and return it.</div><div><br></div><div><br></div>Here's a <font size="4"><b>demo</b></font> with our local OSM data server on top of OSM Layer:<br>
<br><font size="4"><i><a href="http://energia.deusto.es:8001/">http://energia.deusto.es:8001/</a></i></font><br><br></div>The code can be found in <b>github</b> ( <a href="https://github.com/AnderPijoan/vectorosm">https://github.com/AnderPijoan/vectorosm</a> ) and if anyone thinks something can be improved you're welcome to send <b>feedback</b> =)<br clear="all">
<div><div><div><div><br></div><div>Cheers.<br></div><div><br>-- <br><div><font color="#666666">Ander Pijoan Lamas<br>Research Assistant, Deustotech<br></font></div><div><font color="#666666">Computer Science Engineer<br></font></div>
<div><font color="#666666">University of Deusto<br><br></font></div><div><font color="#666666">E-mail: </font><a href="mailto:ander.pijoan@deusto.es" target="_blank"><font color="#666666">ander.pijoan@deusto.es</font></a></div>
<div><font color="#666666">Phone: +34 664471228<br>in: <a href="http://www.linkedin.com/profile/view?id=162888312" target="_blank">http://www.linkedin.com/profile/view?id=162888312</a><br></font></div>
</div></div></div></div></div>