[OSM-dev] Changeset discussions: dumps and replication

Matt Amos zerebubuth at gmail.com
Wed Feb 25 12:05:35 UTC 2015


at the recent Karlsruhe hack weekend [1] (thanks to Geofabrik for
hosting), Paul Norman and i made some changes to changeset replication
[2] and planet dumps [3] to support discussions.

the first of the dumps is now available [4] as, for the moment, a
separate file and the plan is to merge that back into the "main"
changesets dump in about 6 months time - if you consume changeset
dumps, please test your code against the discussions dump!

the discussions dump is largely the same as the changesets dump, but
includes the discussions like this:

 <changeset id="1" created_at="2005-04-09T19:54:13Z"
closed_at="2005-04-09T20:54:39Z" open="false" user="Steve" uid="1"
min_lat="51.5288506" min_lon="-0.1465242" max_lat="51.5288620"
max_lon="-0.1464925" num_changes="2" comments_count="1">
  <discussion>
   <comment uid="33757" user="Minh Nguyen" date="2014-11-15T11:43:09Z">
    <text>From humble beginningsā€¦</text>
   </comment>
  </discussion>
 </changeset>

which is the same format as the API (with comments included) [5].
these are also present in the same format in the changeset replication
feed [6], which allows you to keep a dump or replicated database up to
date with the latest comments & changesets.

i hope this will give everyone the data they need to build interesting
new ways of visualising and interacting with the changeset comment
data, for example; better UIs to display discussions near me or on the
map, analysis tools to check for spam or other bad comments, and
entirely new and unexpected cool things.

cheers & happy hacking,

matt

[1] http://wiki.openstreetmap.org/wiki/Karlsruhe_Hack_Weekend_February_2015
[2] https://github.com/openstreetmap/chef/pull/18
[3] https://github.com/zerebubuth/planet-dump-ng/pull/10
[4] http://planet.openstreetmap.org/planet/2015/discussions-150223.osm.bz2
[5] http://api.openstreetmap.org/api/0.6/changeset/1?include_discussion=true
[6] http://planet.openstreetmap.org/replication/changesets/



More information about the dev mailing list