[OSM-talk-fr] Récupérer tous les changements effectués sur une période ?
Philippe Verdy
verdyp at gmail.com
Sam 29 Fév 19:10:03 UTC 2020
Tu peux aussi utiliser Overpass API pour combiner les requêtes imbriquées.
Le sam. 29 févr. 2020 à 20:08, Philippe Verdy <verdyp at gmail.com> a écrit :
>
> Je vois bien ça:
>
> <osm version="0.6" generator="OpenStreetMap server"
> copyright="OpenStreetMap and contributors"
> attribution="http://www.openstreetmap.org/copyright"
> license="http://opendatacommons.org/licenses/odbl/1-0/">
> <changeset id="78989410" created_at="2019-12-29T20:50:56Z"
> open="false" comments_count="4" changes_count="6"
> closed_at="2019-12-29T20:50:56Z" min_lat="48.8460884"
> min_lon="2.3411616" max_lat="48.8499266" max_lon="2.3436450"
> uid="691133" user="Shohreh">
> <tag k="changesets_count" v="982"/>
> <tag k="imagery_used" v="BDOrtho IGN"/>
> <tag k="locale" v="en-US"/>
> <tag k="host" v="https://www.openstreetmap.org/edit"/>
> <tag k="created_by" v="iD 2.17.0"/>
> <tag k="comment" v="Ajouté DSC"/>
> </changeset>
> <changeset ...>
> ...
> </changeset>
> </osm>
>
> ce sont bien les clés-valeurs... du changeset (dont le commentaire de
> modif, et les coordonnées du bounding box, l'auteur et le nombre de
> changesets qu'il a soumis).
>
> Si tu veux les objets modifiés, il faut énumérer les objets dans
> chaque changeset par une recherche combinée indiquant le numéro de
> changeset (ici celui avec l'identifiant 78742899):
>
> http://api.openstreetmap.org/api/0.6/changeset/78742899/download
>
> qui retourne:
>
> <osmChange version="0.6" generator="CGImap 0.7.5 (13648
> thorn-01.openstreetmap.org)" copyright="OpenStreetMap and
> contributors" attribution="http://www.openstreetmap.org/copyright"
> license="http://opendatacommons.org/licenses/odbl/1-0/">
> <modify>
> <node id="2256148298" visible="true" version="4" changeset="78742899"
> timestamp="2019-12-22T19:47:34Z" user="Shohreh" uid="691133"
> lat="48.8353261" lon="2.2818948">
> <tag k="addr:city" v="Paris"/>
> <tag k="addr:housenumber" v="5"/>
> <tag k="addr:postcode" v="75015"/>
> <tag k="addr:street" v="Boulevard Victor"/>
> <tag k="amenity" v="restaurant"/>
> <tag k="cuisine" v="brazilian"/>
> <tag k="name" v="Rodizio Paris"/>
> <tag k="opening_hours" v="Mon - Fri 12:00-14:30, 19:00-23:00 Sat - Sun
> 19:00 - 23:00"/>
> <tag k="phone" v="+33.9 84 34 76 91"/>
> <tag k="website" v="https://rodizio-brazil.fr/"/>
> </node>
> </modify>
> </osmChange>
>
> Le sam. 29 févr. 2020 à 19:48, Shohreh <codecomplete at free.fr> a écrit :
> >
> > Bonjour,
> >
> > Je voudrais récupérer les tuples de tous les changesets que j'ai enregistrés
> > au cours de l'année 2019.
> >
> > La requête suivante n'affiche que les metadatas, mais pas les clés+valeurs :
> >
> > http://api.openstreetmap.org/api/0.6/changesets?display_name=Shohreh&time=2019-01-01,2019-12-31
> >
> > Comment faire?
> >
> > Merci.
> >
> >
> >
> > --
> > Sent from: http://gis.19327.n8.nabble.com/France-f5380434.html
> >
> > _______________________________________________
> > Talk-fr mailing list
> > Talk-fr at openstreetmap.org
> > https://lists.openstreetmap.org/listinfo/talk-fr
Plus d'informations sur la liste de diffusion Talk-fr