Problematic feature edits on OpenStreetMap
Setup
git clone git@github.com:mapbox/harmful-osm-edits.git
cd harmful-osm-edits
npm install
./generate-fixture.js --type node --id 3352016856 --version 21
./generate-fixture.js --type featureType --id featureId --version featureVersion
Format
{
"description": "Description of what makes this feature edit problematic",
"newVersion": "Feature that was problematic",
"oldVersion": "Version of feature before the problematic change"
}
Example
An ideal fixture with a great description
, newVersion
and oldVersion
.
{
"description": "This feature is problematic because ...",
"newVersion": {
"type": "Feature",
"id": "node!3352016856!21",
"properties": {
"addr:city": "Bangalore",
"addr:housenumber": "221, 2nd Floor",
"addr:landmark": "Above State Bank of India Women's Branch",
"addr:postcode": "560038",
"addr:street": "13th Cross, 2nd Main",
"brand:wikidata": "Q17068357",
"name": "Mapbox",
"name:hi": "मॅपबॉक्स",
"name:kn": "ಮ್ಯಾಪ್ ಬಾಕ್ಸ್",
"name:ml": "മാപ്പ്ബോക്സ്",
"name:ru": "Мапбокс",
"name:ta": "மேப்பாக்ஸ்",
"name:uk": "Мапбокс",
"office": "company",
"operator": "Mapbox Technologies India Private Limited",
"website": "http://www.mapbox.com",
"wikipedia": "en:Mapbox",
"osm:type": "node",
"osm:id": 3352016856,
"osm:version": 21,
"osm:changeset": 43344070,
"osm:timestamp": 1478070497000,
"osm:uid": 1306,
"osm:user": "PlaneMad"
},
"geometry": {
"type": "Point",
"coordinates": [
77.6368034,
12.9810816
]
}
},
"oldVersion": {
"type": "Feature",
"id": "node!3352016856!20",
"properties": {
"addr:city": "Bangalore",
"addr:housenumber": "221, 2nd Floor",
"addr:landmark": "Above State Bank of India Women's Branch",
"addr:postcode": "560038",
"addr:street": "13th Cross, 2nd Main",
"name": "Mapbox",
"name:hi": "मॅपबॉक्स",
"name:kn": "ಮ್ಯಾಪ್ ಬಾಕ್ಸ್",
"name:ml": "മാപ്പ്ബോക്സ്",
"name:ru": "Мапбокс",
"name:ta": "மேப்பாக்ஸ்",
"name:uk": "Мапбокс",
"office": "company",
"website": "http://www.mapbox.com",
"wikipedia": "en:Mapbox",
"osm:type": "node",
"osm:id": 3352016856,
"osm:version": 20,
"osm:changeset": 42368001,
"osm:timestamp": 1474620794000,
"osm:uid": 3460649,
"osm:user": "Amisha Singla"
},
"geometry": {
"type": "Point",
"coordinates": [
77.6368034,
12.9810816
]
}
}
}
A fixture where feature is deleted in it's newVersion
, thus has only oldVersion
.
{
"description": "This feature is problematic because ...",
"newVersion": {},
"oldVersion": {
"type": "Feature",
"id": "node!3352016856!21",
"properties": {
"addr:city": "Bangalore",
"addr:housenumber": "221, 2nd Floor",
"addr:landmark": "Above State Bank of India Women's Branch",
"addr:postcode": "560038",
"addr:street": "13th Cross, 2nd Main",
"brand:wikidata": "Q17068357",
"name": "Mapbox",
"name:hi": "मॅपबॉक्स",
"name:kn": "ಮ್ಯಾಪ್ ಬಾಕ್ಸ್",
"name:ml": "മാപ്പ്ബോക്സ്",
"name:ru": "Мапбокс",
"name:ta": "மேப்பாக்ஸ்",
"name:uk": "Мапбокс",
"office": "company",
"operator": "Mapbox Technologies India Private Limited",
"website": "http://www.mapbox.com",
"wikipedia": "en:Mapbox",
"osm:type": "node",
"osm:id": 3352016856,
"osm:version": 21,
"osm:changeset": 43344070,
"osm:timestamp": 1478070497000,
"osm:uid": 1306,
"osm:user": "PlaneMad"
},
"geometry": {
"type": "Point",
"coordinates": [
77.6368034,
12.9810816
]
}
}
}