<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div style="" class=""><span style="" class="">Stefan,</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">Browsing through you uMap, each location is listed twice. To reset, you probably have to erase the content of your data layer and provide again the url link to Overpass.</div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px;
 font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">To verify what exactly is returned from Overpass, y<span style="" class="">ou can copy the Overpass instructions from uMap and see  directly in a browser. This will let you validate what result Overpass is returning as a json file.</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""><span style="" class=""></span></div><div class="" style="color:
 rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">http://overpass.osm.ch/api/interpreter?data=%5Bout%3Ajson%5D%5Btimeout%3A99%5D%3B%28node%5B%22shop%22%7E%22dairy%22%5D%3Bnode%5B%22name%22%7E%22%5BKk%5D%C3%A4serei%7C%5BCc%5Dh%C3%A4si%7C%5BFf%5Dromagerie%7C%5BCc%5Daseificio%7C%5BCc%5Dhascharia%22%5D%3Bnode%5B%22produce%22%7E%22cheese%22%5D%3Bnode%5B%22craft%22%7E%22cheese%5Fmaking%22%5D%3B%29%3Bout%20meta%3B%28way%5B%22shop%22%7E%22dairy%22%5D%3Bway%5B%22name%22%7E%22%5BKk%5D%C3%A4serei%7C%5BCc%5Dh%C3%A4si%7C%5BFf%5Dromagerie%7C%5BCc%5Daseificio%7C%5BCc%5Dhascharia%22%5D%3Bway%5B%22produce%22%7E%22cheese%22%5D%3Bway%5B%22craft%22%7E%22cheese%5Fmaking%22%5D%3B%29%3Bout%20meta%20qt%3B%28%2E%5F%3B%3E%3B%29%3Bout%20meta%20qt%3B%0A<br style="" class=""></span></div><div style=""
 class=""> </div><div style="" class=""><span class="" style="font-style:italic;color:rgb(0, 0, 191);font-weight:bold;">Pierre <br style="" class=""></span><br style="" class=""></div>  <div class="" style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10pt;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="" class="" dir="ltr"> <hr style="" class="" size="1">  <font style="" class="" face="Arial" size="2"> <b style="" class=""><span class="" style="font-weight:bold;">De :</span></b> Stefan Keller <sfkeller@gmail.com><br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">À :</span></b> mmd <mmd.osm@gmail.com> <br style="" class=""><b style="" class=""><span class="" style="font-weight: bold;">Cc :</span></b> Talk
 Openstreetmap <talk@openstreetmap.org> <br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Envoyé le :</span></b> Jeudi 24 juillet 2014 14h49<br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Objet :</span></b> Re: [OSM-talk] Overpass API / Overpass QL: center (and centroid)        function?<br style="" class=""> </font> </div> <div style="" class=""><br style="" class="">Dear all<br style="" class="" clear="none"><br style="" class="" clear="none">Thanks for the help - especially from the french colleagues.<br style="" class="" clear="none">I'm still struggling even with the XML output.<br style="" class="" clear="none">My actual goal is to display the result set of the "Dairy/Cheese<br style="" class="" clear="none">Makers" query in uMap.<br style="" class="" clear="none">When I apply the query below to <a style="" class="" shape="rect" href="http://overpass-turbo.osm.ch/"
 target="_blank">http://overpass-turbo.osm.ch/ </a>the result is OK<br style="" class="" clear="none">(displayed POIs: 386, Lines: 300, Polygons: 138).<br style="" class="" clear="none"><br style="" class="" clear="none">But when I add this URL as remote data to uMap, there are less markers<br style="" class="" clear="none">displayed.<br style="" class="" clear="none">It seems again that there is a problem with the ways/areas:<br style="" class="" clear="none"><a style="" class="" shape="rect" href="http://umap.osm.ch/de/map/kasereien_18" target="_blank">http://umap.osm.ch/de/map/kasereien_18</a><br style="" class="" clear="none"><br style="" class="" clear="none">You can easily see the difference when comparing to Simon's solution:<br style="" class="" clear="none">Simon actually gave up using overpass within uMap and preprocessed the<br style="" class="" clear="none">data locally:<br style="" class="" clear="none"><a style="" class="" shape="rect"
 href="http://umap.osm.ch/de/map/kasereien_6" target="_blank">http://umap.osm.ch/de/map/kasereien_6</a><br style="" class="" clear="none"><br style="" class="" clear="none">--Stefan<br style="" class="" clear="none"><br style="" class="" clear="none">[out:xml]<br style="" class="" clear="none">[timeout:25]<br style="" class="" clear="none">;<br style="" class="" clear="none">(<br style="" class="" clear="none">  node["shop"~"dairy"];<br style="" class="" clear="none">  node<br style="" class="" clear="none">    ["name"~"[Kk]äserei|[Cc]häsi|[Ff]romagerie|[Cc]aseificio|[Cc]hascharia"];<br style="" class="" clear="none">  node["produce"~"cheese"];<br style="" class="" clear="none">  node["craft"~"cheese_making"];<br style="" class="" clear="none">);<br style="" class="" clear="none">out meta;<br style="" class="" clear="none">(<br style="" class="" clear="none">  way["shop"~"dairy"];<br style="" class=""
 clear="none">  way<br style="" class="" clear="none">    ["name"~"[Kk]äserei|[Cc]häsi|[Ff]romagerie|[Cc]aseificio|[Cc]hascharia"];<br style="" class="" clear="none">  way["produce"~"cheese"];<br style="" class="" clear="none">  way["craft"~"cheese_making"];<br style="" class="" clear="none">);<br style="" class="" clear="none">out meta center qt;<br style="" class="" clear="none">(<br style="" class="" clear="none">  ._;<br style="" class="" clear="none">  >;<br style="" class="" clear="none">);<br style="" class="" clear="none">out meta qt;<br style="" class="" clear="none"><br style="" class="" clear="none">2014-07-24 19:58 GMT+02:00 mmd <<a style="" class="" shape="rect" ymailto="mailto:mmd.osm@gmail.com" href="mailto:mmd.osm@gmail.com">mmd.osm@gmail.com</a>>:<br style="" class="" clear="none">> Pieren wrote<br style="" class="" clear="none">>> On Thu, Jul 24, 2014 at 5:33 PM, Christian Quest<br
 style="" class="" clear="none">>>> In my last overpass test with the new "out center" feature, it looked<br style="" class="" clear="none">>>> like<br style="" class="" clear="none">>>> it was working only with XML output, not with the JSON (not GeoJSON) one.<br style="" class="" clear="none">>><br style="" class="" clear="none">>> It's already reported:<br style="" class="" clear="none">>> <a style="" class="" shape="rect" href="https://github.com/drolbr/Overpass-API/issues/93" target="_blank">https://github.com/drolbr/Overpass-API/issues/93</a><br style="" class="" clear="none">>><br style="" class="" clear="none">>> Pieren<br style="" class="" clear="none">><br style="" class="" clear="none">> Right, some of the missing bits for JSON support are already implemented in<br style="" class="" clear="none">> the "out_geom_json" branch. However, Roland hasn't merged this branch into<br
 style="" class="" clear="none">> the master branch yet.<br style="" class="" clear="none">><br style="" class="" clear="none">> <a style="" class="" shape="rect" href="https://github.com/drolbr/Overpass-API/tree/out_geom_json" target="_blank">https://github.com/drolbr/Overpass-API/tree/out_geom_json</a><br style="" class="" clear="none">><br style="" class="" clear="none">> Best<br style="" class="" clear="none">> mmd<br style="" class="" clear="none">><br style="" class="" clear="none">><br style="" class="" clear="none">><br style="" class="" clear="none">><br style="" class="" clear="none">> --<br style="" class="" clear="none">> View this message in context: <a style="" class="" shape="rect" href="http://gis.19327.n5.nabble.com/Overpass-API-Overpass-QL-center-and-centroid-function-tp5812491p5812549.html"
 target="_blank">http://gis.19327.n5.nabble.com/Overpass-API-Overpass-QL-center-and-centroid-function-tp5812491p5812549.html</a><br style="" class="" clear="none">> Sent from the General Discussion mailing list archive at Nabble.com.<br style="" class="" clear="none">><br style="" class="" clear="none">> _______________________________________________<br style="" class="" clear="none">> talk mailing list<br style="" class="" clear="none">> <a style="" class="" shape="rect" ymailto="mailto:talk@openstreetmap.org" href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br style="" class="" clear="none">> <a style="" class="" shape="rect" href="https://lists.openstreetmap.org/listinfo/talk" target="_blank">https://lists.openstreetmap.org/listinfo/talk</a><div style="" class="" id="yqtfd71680"><br style="" class="" clear="none"><br style="" class="" clear="none">_______________________________________________<br style="" class=""
 clear="none">talk mailing list<br style="" class="" clear="none"><a style="" class="" shape="rect" ymailto="mailto:talk@openstreetmap.org" href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br style="" class="" clear="none"><a style="" class="" shape="rect" href="https://lists.openstreetmap.org/listinfo/talk" target="_blank">https://lists.openstreetmap.org/listinfo/talk</a><br style="" class="" clear="none"></div><br style="" class=""><br style="" class=""></div> </div> </div>  </div></body></html>