compare-geojson
Version:
Compare a features new and old versions in GeoJSON
179 lines (178 loc) • 5.62 kB
JSON
{
"compareFunction": "compare_tag",
"fixtures": [
{
"description": "Test no change between old and new version.",
"newVersion": {
"type": "Feature",
"id": "node!3401391999!18",
"properties": {
"alt_name": "Bangalore",
"capital": "4",
"ele": "920",
"is_capital": "state",
"is_in:iso_3166_2": "IN-KA",
"name": "Bengaluru",
"name:be": "বেঙ্গালূরু",
"name:de": "Bangalore",
"name:en": "Bengaluru",
"name:hi": "बेंगालुरू",
"name:ja": "バンガロール",
"name:kn": "ಬೆಂಗಳೂರು",
"name:ml": "ബേങ്കങളൂരു",
"name:ru": "Бангалор",
"name:ta": "பெங்களூர்",
"name:te": "బెంగళూరు",
"old_name": "Bangalore",
"place": "city",
"population": "10839725",
"postal_code": "560001",
"wikipedia": "en:Bangalore",
"osm:type": "node",
"osm:id": 3401391999,
"osm:version": 18,
"osm:changeset": 38465973,
"osm:timestamp": 1460352276000,
"osm:uid": 2115749,
"osm:user": "srividya_c"
},
"geometry": {
"type": "Point",
"coordinates": [
77.5912997,
12.9791198
]
}
},
"oldVersion": {
"type": "Feature",
"id": "node!3401391999!18",
"properties": {
"alt_name": "Bangalore",
"capital": "4",
"ele": "920",
"is_capital": "state",
"is_in:iso_3166_2": "IN-KA",
"name": "Bengaluru",
"name:be": "বেঙ্গালূরু",
"name:de": "Bangalore",
"name:en": "Bengaluru",
"name:hi": "बेंगालुरू",
"name:ja": "バンガロール",
"name:kn": "ಬೆಂಗಳೂರು",
"name:ml": "ബേങ്കങളൂരു",
"name:ru": "Бангалор",
"name:ta": "பெங்களூர்",
"name:te": "బెంగళూరు",
"old_name": "Bangalore",
"place": "city",
"population": "10839725",
"postal_code": "560001",
"wikipedia": "en:Bangalore",
"osm:type": "node",
"osm:id": 3401391999,
"osm:version": 18,
"osm:changeset": 38465973,
"osm:timestamp": 1460352276000,
"osm:uid": 2115749,
"osm:user": "srividya_c"
},
"geometry": {
"type": "Point",
"coordinates": [
77.5912997,
12.9791198
]
}
},
"expectedResult": {}
},
{
"description": "Test change in name:en between old and new version.",
"newVersion": {
"type": "Feature",
"id": "node!3401391999!18",
"properties": {
"alt_name": "Bangalore",
"capital": "4",
"ele": "920",
"is_capital": "state",
"is_in:iso_3166_2": "IN-KA",
"name": "Bengaluru",
"name:be": "বেঙ্গালূরু",
"name:de": "Bangalore",
"name:en": "Bengaluru",
"name:hi": "बेंगालुरू",
"name:ja": "バンガロール",
"name:kn": "ಬೆಂಗಳೂರು",
"name:ml": "ബേങ്കങളൂരു",
"name:ru": "Бангалор",
"name:ta": "பெங்களூர்",
"name:te": "బెంగళూరు",
"old_name": "Bangalore",
"place": "city",
"population": "10839725",
"postal_code": "560001",
"wikipedia": "en:Bangalore",
"osm:type": "node",
"osm:id": 3401391999,
"osm:version": 18,
"osm:changeset": 38465973,
"osm:timestamp": 1460352276000,
"osm:uid": 2115749,
"osm:user": "srividya_c"
},
"geometry": {
"type": "Point",
"coordinates": [
77.5912997,
12.9791198
]
}
},
"oldVersion": {
"type": "Feature",
"id": "node!3401391999!17",
"properties": {
"alt_name": "Bangalore",
"capital": "4",
"ele": "920",
"is_capital": "state",
"is_in:iso_3166_2": "IN-KA",
"name": "Bengaluru",
"name:be": "বেঙ্গালূরু",
"name:de": "Bangalore",
"name:en": "Bangalore",
"name:hi": "बेंगालुरू",
"name:ja": "バンガロール",
"name:kn": "ಬೆಂಗಳೂರು",
"name:ml": "ബേങ്കങളൂരു",
"name:ru": "Бангалор",
"name:ta": "பெங்களூர்",
"name:te": "బెంగళూరు",
"place": "city",
"population": "10839725",
"postal_code": "560001",
"wikipedia": "en:Bangalore",
"osm:type": "node",
"osm:id": 3401391999,
"osm:version": 17,
"osm:changeset": 38240694,
"osm:timestamp": 1459554701000,
"osm:uid": 257555,
"osm:user": "rene78"
},
"geometry": {
"type": "Point",
"coordinates": [
77.5912997,
12.9791198
]
}
},
"expectedResult": {
"result:significant_tag": true
}
}
]
}