/v1/changeset
One changeset in full, with its discussion
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/openstreetmap-api/v1/changeset" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/openstreetmap-api/v1/changeset", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/openstreetmap-api/v1/changeset");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/openstreetmap-api/v1/changeset",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"id": 1,
"uid": 1,
"url": "https://www.openstreetmap.org/changeset/1",
"bbox": {
"max_lat": 51.528862,
"max_lon": -0.1464925,
"min_lat": 51.5288506,
"min_lon": -0.1465242
},
"open": false,
"user": "Steve",
"editor": null,
"source": null,
"changes": 2,
"comment": null,
"created": 2,
"deleted": 0,
"modified": 0,
"closed_at": "2005-04-09T20:54:39Z",
"created_at": "2005-04-09T19:54:13Z",
"discussion": [
{
"date": "2014-11-15T11:43:09Z",
"text": "From humble beginnings…",
"user": "Minh Nguyen"
},
{
"date": "2016-05-06T14:14:03Z",
"text": "?",
"user": "Geography Canada"
},
{
"date": "2016-12-06T16:21:28Z",
"text": "Ah, the great \"first.\"",
"user": "Roadsguy"
},
{
"date": "2017-02-28T15:41:09Z",
"text": "http://www.directionsmag.com/entry/osm-the-simple-map-that-became-a-global-movement/466280 \"The very first contribution to OpenStreetMap was probably a road.\" Turns out it wasn't",
"user": "NiedernhausenerJunge"
},
{
"date": "2017-07-23T01:33:07Z",
"text": "What was it then? When seeing the nodes in this changeset, I can't find what they were.",
"user": "tuxayo"
},
{
"date": "2017-08-23T02:44:15Z",
"text": "The first of world :)",
"user": "Diego Sanguinetti"
},
{
"date": "2018-04-03T09:56:35Z",
"text": ".",
"user": "The_Cute_Chick"
},
{
"date": "2018-08-14T17:24:27Z",
"text": "OSM Rules",
"user": "MarcoTevar"
},
{
"date": "2018-10-22T18:43:51Z",
"text": "This wasn't the first thing ever added to osm, right?",
"user": "user_8331873"
},
{
"date": "2018-10-22T20:02:02Z",
"text": "Nope; it's just the first changeset, though I'm not sure how editing worked before the changeset system was added early on.",
"user": "Roadsguy"
},
{
"date": "2018-11-30T00:59:54Z",
"text": "Just adding a comment to history.",
"user": "Aphroditelita"
},
{
"date": "2019-10-10T14:07:08Z",
"text": "Just continuing the Rule Of Rexma423",
"user": "RajSarkar"
},
{
"date": "2019-10-10T14:07:28Z",
…