<div dir="ltr">Hello,<div><br></div><div>@Simone, would you suggest Overpass or XAPI for the second question asked by the OP? I am also a newbie and at this very moment I am trying out OSM Nominatim install on Amazon EC2. I previously was using Mapquest's open/OSM data, but that seems to be old and unmaintained! I would love to know why use overpass instead of XAPI for read only queries.</div>
<div><br></div><div>Thanks!</div><div>Sachin Dole</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 21, 2014 at 10:12 AM, Simone Cortesi <span dir="ltr"><<a href="mailto:simone@cortesi.com" target="_blank">simone@cortesi.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Mar 21, 2014 at 3:20 PM, Giuseppe Ricci <<a href="mailto:peppepegasus@gmail.com">peppepegasus@gmail.com</a>> wrote:<br>

<br>
Hi Giuseppe,<br>
<div class=""><br>
> But I want to understand if osm's data permit to implement my idea.<br>
> My first question is: if I have some points of interest and I want to show<br>
> these on an open street map is it possible? For example with google map<br>
> there is this tutorial:<br>
><br>
> <a href="https://developers.google.com/maps/articles/phpsqlajax_v3" target="_blank">https://developers.google.com/maps/articles/phpsqlajax_v3</a><br>
<br>
</div>we normally use <a href="http://leafletjs.com/" target="_blank">http://leafletjs.com/</a> as a front-end to osm tiles.<br>
<br>
the DB approach you suggest is still valid inside OSM, you need to<br>
provide your own database and create a structure which can be queried<br>
by your script, a that is able to provide well formatted json or csv<br>
based on the requested bounding box. there are numerous plugins for<br>
that: <a href="http://leafletjs.com/plugins.html" target="_blank">http://leafletjs.com/plugins.html</a><br>
<div class=""><br>
> The second question is: can I query the osm's database to find hotels,<br>
> restaurants, shopping center, etc? Is it possible to show these points on a<br>
> osm map?<br>
<br>
</div>overpass API is the answer.<br>
<br>
shops in Bari: <a href="http://overpass-turbo.eu/s/2PS" target="_blank">http://overpass-turbo.eu/s/2PS</a><br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/dev" target="_blank">https://lists.openstreetmap.org/listinfo/dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>President  |  Genvega Inc.  |  <a href="http://www.genvega.com" target="_blank">www.genvega.com</a>  | 
 tel: 630.290.2561
</div>