<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">J'utilise ces données pour produire des <span style="" class="">Statistiques de contribution OSM pour une zone et une période donnée. 
J'interroge l'API OSM à l'aide des commandes:<br style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class="">- changesets  : Liste de changesets pour un bbox et période donnée - Contributeur, Date, Commentaires, Éditeur, BBox de l'édition<br></div><div style="" class="">- changeset/download : Pour un changeset spécifique, géométrie et attributs des objets créés, modifiés ou détruits</div><div style="" class=""><br></div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">Il est facile d'interroger l'API à partir d'un script Python.<span style="" class=""> Par contre, les restrictions de téléchargement ne permettent de
 faire de telles analyses que pour des petites zones et courtes 
périodes.</span></div><br style="" class=""><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class="">Commande Changesets - Exemple de données pour un changeset spécifique.<br style="" class=""><changeset
 id="3610855" user="1248" uid="170672" created_at="2010-01-13T15:42:06Z"
 closed_at="2010-01-13T15:42:30Z" open="false" min_lat="51.9568908" 
min_lon="7.6232738" max_lat="51.9793333" max_lon="7.6653115"><tag 
k="created_by" v="JOSM/1.5 (2554 de)"/><tag k="comment" 
v="Korrekturen, POIs hinzugefügt"/></changeset><br style="" class=""></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class=""><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class="">La commande changeset/download fournit ensuite pour un changeset spécifique, la liste des objets, leur ID, attributs et géométrie.</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class=""><br></div>Des solutions à proposer ?<br> <br><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, 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> Christian Quest <cquest@openstreetmap.fr><br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">À :</span></b> Pierre Béland <pierzenh@yahoo.fr>; Discussions sur OSM en français <talk-fr@openstreetmap.org> <br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Envoyé le :</span></b> Mercredi 18 juin 2014 15h14<br style="" class="">
 <b style="" class=""><span class="" style="font-weight: bold;">Objet :</span></b> Re: [OSM-talk-fr] Acces a l'API openstreetmap.fr<br style="" class=""> </font> </div> <div style="" class=""><br style="" class=""><div style="" class="" id="yiv7382349045"><div style="" class=""><div style="" class="" dir="ltr">Mettre en place un serveur miroir de l'API... plutôt lourd.<div style="" class=""><br style="" class="" clear="none"></div><div style="" class="">C'est pour quel usage au juste ? Il y a peut être un moyen plus efficace de le faire, mais d'une toute autre façon.</div>

</div><div style="" class=""><br style="" class="" clear="none"><br style="" class="" clear="none"><div style="" class="">Le 18 juin 2014 20:25, Pierre Béland <span style="" class="" dir="ltr"><<a style="" class="" rel="nofollow" shape="rect" ymailto="mailto:pierzenh@yahoo.fr" target="_blank" href="mailto:pierzenh@yahoo.fr">pierzenh@yahoo.fr</a>></span> a écrit :<br style="" class="" clear="none"><blockquote class="" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div style="" class="" id="yiv7382349045yqt62051"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt;"><div class="" style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">

<br style="" class="" clear="none"><span style="" class=""></span></div><div class="" style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span style="" class="">Si ce type de requête ne peut être géré par la surcouche mise par dessus l'Overpass, y-a-t-il une solution technique qui pourrait résoudre ce problème et offrir ces données? <br style="" class="" clear="none">

</span></div><div class="" style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span style="" class=""><br style="" class="" clear="none"></span></div><div class="" style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">

<span style="" class="">Cela serait drôlement utile et contribuerait à décharger le serveur principal.<br style="" class="" clear="none"></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="" clear="none"></span><br style="" class="" clear="none"></div>  <div class="" style="font-family:HelveticaNeue, 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"> <b style="" class=""><span class="" style="font-weight:bold;">De :</span></b> Christian Quest <<a style="" class="" rel="nofollow" shape="rect" ymailto="mailto:cquest@openstreetmap.fr" target="_blank" href="mailto:cquest@openstreetmap.fr">cquest@openstreetmap.fr</a>><br style="" class="" clear="none">

 <b style="" class=""><span class="" style="font-weight:bold;">À :</span></b> Discussions sur OSM en français
 <<a style="" class="" rel="nofollow" shape="rect" ymailto="mailto:talk-fr@openstreetmap.org" target="_blank" href="mailto:talk-fr@openstreetmap.org">talk-fr@openstreetmap.org</a>> <br style="" class="" clear="none"> <b style="" class=""><span class="" style="font-weight:bold;">Envoyé le :</span></b> Mardi 17 juin 2014 3h48<br style="" class="" clear="none"> <b style="" class=""><span class="" style="font-weight:bold;">Objet :</span></b> Re: [OSM-talk-fr] Acces a l'API <a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://openstreetmap.fr/">openstreetmap.fr</a><br style="" class="" clear="none">

 </font> </div><div style="" class=""> <div style="" class=""><br style="" class="" clear="none"><div style="" class=""><div style="" class=""><div style="" class="" dir="ltr">Certaines requêtes ne sont pas gérables par la surcouche mise par dessus l'overpass et sont donc redirigées vers <a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://api.openstreetmap.org/">api.openstreetmap.org</a><div style="" class="">

<br style="" class="" clear="none"></div><div style="" class="">Les requêtes sur les changesets en font partie, ainsi que celle sur les historiques des objets.</div>

<div style="" class=""><br style="" class="" clear="none"></div><div style="" class="">Pour la doc, c'est ici: <a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://wiki.openstreetmap.org/wiki/FR:Servers/api.openstreetmap.fr">http://wiki.openstreetmap.org/wiki/FR:Servers/api.openstreetmap.fr</a></div>

<div style="" class=""><br style="" class="" clear="none"></div></div><br style="" class="" clear="none"><div style="" class=""><div style="" class="">Le 17 juin 2014 00:17, Pierre Béland <span style="" class="" dir="ltr"><<a style="" class="" rel="nofollow" shape="rect" ymailto="mailto:pierzenh@yahoo.fr" target="_blank" href="mailto:pierzenh@yahoo.fr">pierzenh@yahoo.fr</a>></span> a écrit :<br style="" class="" clear="none">

<blockquote class="" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div style="" class=""><br style="" class="" clear="none"><br style="" class="" clear="none"></div><div style="" class=""><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt;"><div style="" class=""><span style="" class="">Corrigez-moi si je me trompes, mais Christian indiquait lors de sa présentation à SOTM-EU la fin de semaine dernière qu'il est possible de faire des requêtes API au serveur <a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://openstreetmap.fr/">openstreetmap.fr</a> pour soulager le serveur principal, ceci avec moins de restrictions d'accès. Je ne retrouve pas la documentation la-dessus et ne réussis pas à obtenir cette info directement de <a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://openstreetmap.fr/">openstreetmap.fr</a></span></div>



<div class="" style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br style="" class="" clear="none"><span style="" class=""></span></div><div class="" style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">



<span style="" class="">Par exemple, la requête suivante est redirigée vers <a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://openstreetmap.org/">openstreetmap.org</a>. (code 302, moved temporarily)<br style="" class="" clear="none"></span></div>

<div class="" style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">

<a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://api.openstreetmap.fr/api/0.6/changeset/16716501/download">api.openstreetmap.fr/api/0.6/changeset/16716501/download</a></div><div class="" style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">



<br style="" class="" clear="none"><span style="" class=""></span></div><div class="" style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span style="" class="">La situation n'a donc pas changé. Mais qu'en est-il exactement là-dessus? Acceptez-vous maintenant ces requêtes API, et si oui, allez vous réviser les paramètres pour nous permettte l'accès.  Et si oui, il serait intéressant d'avoir une documentation sur les limites pour les différentes requêtes sur <a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://opensteetmap.fr/">opensteetmap.fr</a></span></div>



<span style="" class=""><font style="" class="" color="#888888"> </font></span><div style="" class=""><span class="" style="font-style:italic;color:rgb(0,0,191);font-weight:bold;">Pierre <br style="" class="" clear="none"></span></div></div></div></div></blockquote></div></div></div></div></div> </div>

</div> </div>  </div></div></div></blockquote></div><br></div></div></div><br style="" class=""><br style="" class=""></div> </div> </div>  </div></body></html>