Skip to content

Map visualization data

Wille Marcel edited this page Apr 1, 2019 · 1 revision

The OSMCha API endpoints provide only information about the changeset properties and geometries. Those endpoints also provide some information about the flagged features, like the name, id and flagged reasons, but not its geometry.

We have other sources of data that provides the complete information about all the features present in one changeset, ie the geometry and properties of both the current and the last version. We use those sources to make the map visualization possible.

The most practical way is to get that from real-changesets repository. For example: https://s3.amazonaws.com/mapbox/real-changesets/production/68738232.json

Other way is to make a query with some overpass instance:

<your overpass api url>/api/interpreter?data=[out:xml][adiff:"2017-01-26T14:07:06Z,","2017-01-26T14:07:09Z"];(node(bbox)(changed);way(bbox)(changed);relation(bbox)(changed));out meta geom(bbox);&bbox=-51.9328933,-23.4178143,-51.9328826,-23.4148312

Replace the bbox and dates by the bbox and the dates of creation and closing of the changeset

Clone this wiki locally