compare-geojson
Version:
Compare a features new and old versions in GeoJSON
1,888 lines • 38.8 kB
JSON
{
"compareFunction": "major_road_changed",
"fixtures": [
{
"description": "major road modified",
"newVersion": {
"type": "Feature",
"id": "way!90800153!24",
"properties": {
"AND_a_nosr_r": "15062474",
"AND:importance_level": "2",
"highway": "tertiary",
"osm:type": "way",
"osm:id": 90800153,
"osm:version": 24,
"osm:changeset": 44390158,
"osm:timestamp": 1481696445000,
"osm:uid": 3479270,
"osm:user": "nammala"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
83.3350236,
17.7220755
],
[
83.3348845,
17.7221054
],
[
83.3346842,
17.7221352
],
[
83.3342895,
17.7221956
],
[
83.3339606,
17.7222435
],
[
83.3337141,
17.7222982
],
[
83.3336216,
17.7223301
],
[
83.3334255,
17.7224553
],
[
83.3333581,
17.7225326
],
[
83.3333418,
17.7225513
],
[
83.3332998,
17.7226009
],
[
83.3332398,
17.7226664
],
[
83.3330828,
17.7228287
],
[
83.3328316,
17.7230091
],
[
83.3326936,
17.7230736
],
[
83.3325435,
17.7231291
],
[
83.3323892,
17.7231706
],
[
83.3322237,
17.7232099
],
[
83.3321115,
17.7232269
],
[
83.3319528,
17.7232376
],
[
83.3318213,
17.723248
],
[
83.3317717,
17.7232468
],
[
83.3315273,
17.7232282
],
[
83.3312948,
17.7231566
],
[
83.3310904,
17.7230765
],
[
83.3309032,
17.7229854
],
[
83.33069,
17.7228768
],
[
83.3305451,
17.7228219
],
[
83.3302763,
17.7227389
],
[
83.3296193,
17.7225979
],
[
83.3290406,
17.7224377
],
[
83.3280125,
17.722103
],
[
83.327615,
17.7219812
],
[
83.3272662,
17.7218406
],
[
83.3271081,
17.7217627
],
[
83.32659,
17.7215472
],
[
83.3265449,
17.7215285
],
[
83.3261236,
17.7214349
],
[
83.3258771,
17.7213883
],
[
83.3255447,
17.7213191
],
[
83.3251817,
17.7212457
],
[
83.3245946,
17.7211183
],
[
83.3242512,
17.7210428
],
[
83.3241379,
17.7210172
],
[
83.3237961,
17.72094
],
[
83.3237628,
17.7209332
],
[
83.3233378,
17.720846
],
[
83.3232725,
17.7208433
],
[
83.3227729,
17.7208229
],
[
83.3224025,
17.7208077
],
[
83.3222894,
17.7208003
],
[
83.3221321,
17.7207858
],
[
83.3219265,
17.7207755
],
[
83.3217892,
17.7207703
],
[
83.3215367,
17.7207736
],
[
83.3212375,
17.7208213
],
[
83.3210418,
17.7208603
],
[
83.3207537,
17.7209065
],
[
83.3206315,
17.7209219
],
[
83.3203476,
17.7209402
],
[
83.3201823,
17.7209608
]
]
}
},
"oldVersion": {
"type": "Feature",
"id": "way!90800153!23",
"properties": {
"AND_a_nosr_r": "15062474",
"AND:importance_level": "2",
"highway": "secondary",
"osm:type": "way",
"osm:id": 90800153,
"osm:version": 23,
"osm:changeset": 37756012,
"osm:timestamp": 1457692023000,
"osm:uid": 3479270,
"osm:user": "nammala"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
83.3350236,
17.7220755
],
[
83.3348845,
17.7221054
],
[
83.3346842,
17.7221352
],
[
83.3342895,
17.7221956
],
[
83.3339606,
17.7222435
],
[
83.3337141,
17.7222982
],
[
83.3336216,
17.7223301
],
[
83.3334255,
17.7224553
],
[
83.3333581,
17.7225326
],
[
83.3333418,
17.7225513
],
[
83.3332998,
17.7226009
],
[
83.3332398,
17.7226664
],
[
83.3330828,
17.7228287
],
[
83.3328316,
17.7230091
],
[
83.3326936,
17.7230736
],
[
83.3325435,
17.7231291
],
[
83.3323892,
17.7231706
],
[
83.3322237,
17.7232099
],
[
83.3321115,
17.7232269
],
[
83.3319528,
17.7232376
],
[
83.3318213,
17.723248
],
[
83.3317717,
17.7232468
],
[
83.3315273,
17.7232282
],
[
83.3312948,
17.7231566
],
[
83.3310904,
17.7230765
],
[
83.3309032,
17.7229854
],
[
83.33069,
17.7228768
],
[
83.3305451,
17.7228219
],
[
83.3302763,
17.7227389
],
[
83.3296193,
17.7225979
],
[
83.3290406,
17.7224377
],
[
83.3280125,
17.722103
],
[
83.327615,
17.7219812
],
[
83.3272662,
17.7218406
],
[
83.3271081,
17.7217627
],
[
83.32659,
17.7215472
],
[
83.3265449,
17.7215285
],
[
83.3261236,
17.7214349
],
[
83.3258771,
17.7213883
],
[
83.3255447,
17.7213191
],
[
83.3251817,
17.7212457
],
[
83.3245946,
17.7211183
],
[
83.3242512,
17.7210428
],
[
83.3241379,
17.7210172
],
[
83.3237961,
17.72094
],
[
83.3237628,
17.7209332
],
[
83.3233378,
17.720846
],
[
83.3232725,
17.7208433
],
[
83.3227729,
17.7208229
],
[
83.3224025,
17.7208077
],
[
83.3222894,
17.7208003
],
[
83.3221321,
17.7207858
],
[
83.3219265,
17.7207755
],
[
83.3217892,
17.7207703
],
[
83.3215367,
17.7207736
],
[
83.3212375,
17.7208213
],
[
83.3210418,
17.7208603
],
[
83.3207537,
17.7209065
],
[
83.3206315,
17.7209219
],
[
83.3203476,
17.7209402
],
[
83.3201823,
17.7209608
]
]
}
},
"expectedResult": {
"result:major_road_changed": {
"modified": true,
"from": "secondary",
"to": "tertiary"
}
}
},
{
"description": "major road deleted",
"newVersion": null,
"oldVersion": {
"type": "Feature",
"id": "way!90800153!23",
"properties": {
"AND_a_nosr_r": "15062474",
"AND:importance_level": "2",
"highway": "secondary",
"osm:type": "way",
"osm:id": 90800153,
"osm:version": 23,
"osm:changeset": 37756012,
"osm:timestamp": 1457692023000,
"osm:uid": 3479270,
"osm:user": "nammala"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
83.3350236,
17.7220755
],
[
83.3348845,
17.7221054
],
[
83.3346842,
17.7221352
],
[
83.3342895,
17.7221956
],
[
83.3339606,
17.7222435
],
[
83.3337141,
17.7222982
],
[
83.3336216,
17.7223301
],
[
83.3334255,
17.7224553
],
[
83.3333581,
17.7225326
],
[
83.3333418,
17.7225513
],
[
83.3332998,
17.7226009
],
[
83.3332398,
17.7226664
],
[
83.3330828,
17.7228287
],
[
83.3328316,
17.7230091
],
[
83.3326936,
17.7230736
],
[
83.3325435,
17.7231291
],
[
83.3323892,
17.7231706
],
[
83.3322237,
17.7232099
],
[
83.3321115,
17.7232269
],
[
83.3319528,
17.7232376
],
[
83.3318213,
17.723248
],
[
83.3317717,
17.7232468
],
[
83.3315273,
17.7232282
],
[
83.3312948,
17.7231566
],
[
83.3310904,
17.7230765
],
[
83.3309032,
17.7229854
],
[
83.33069,
17.7228768
],
[
83.3305451,
17.7228219
],
[
83.3302763,
17.7227389
],
[
83.3296193,
17.7225979
],
[
83.3290406,
17.7224377
],
[
83.3280125,
17.722103
],
[
83.327615,
17.7219812
],
[
83.3272662,
17.7218406
],
[
83.3271081,
17.7217627
],
[
83.32659,
17.7215472
],
[
83.3265449,
17.7215285
],
[
83.3261236,
17.7214349
],
[
83.3258771,
17.7213883
],
[
83.3255447,
17.7213191
],
[
83.3251817,
17.7212457
],
[
83.3245946,
17.7211183
],
[
83.3242512,
17.7210428
],
[
83.3241379,
17.7210172
],
[
83.3237961,
17.72094
],
[
83.3237628,
17.7209332
],
[
83.3233378,
17.720846
],
[
83.3232725,
17.7208433
],
[
83.3227729,
17.7208229
],
[
83.3224025,
17.7208077
],
[
83.3222894,
17.7208003
],
[
83.3221321,
17.7207858
],
[
83.3219265,
17.7207755
],
[
83.3217892,
17.7207703
],
[
83.3215367,
17.7207736
],
[
83.3212375,
17.7208213
],
[
83.3210418,
17.7208603
],
[
83.3207537,
17.7209065
],
[
83.3206315,
17.7209219
],
[
83.3203476,
17.7209402
],
[
83.3201823,
17.7209608
]
]
}
},
"expectedResult": {
"result:major_road_changed": {
"deleted": true,
"version": 23
}
}
},
{
"description": "major road failure - low version number",
"newVersion": {
"type": "Feature",
"id": "way!90800153!24",
"properties": {
"AND_a_nosr_r": "15062474",
"AND:importance_level": "2",
"highway": "tertiary",
"osm:type": "way",
"osm:id": 90800153,
"osm:version": 24,
"osm:changeset": 44390158,
"osm:timestamp": 1481696445000,
"osm:uid": 3479270,
"osm:user": "nammala"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
83.3350236,
17.7220755
],
[
83.3348845,
17.7221054
],
[
83.3346842,
17.7221352
],
[
83.3342895,
17.7221956
],
[
83.3339606,
17.7222435
],
[
83.3337141,
17.7222982
],
[
83.3336216,
17.7223301
],
[
83.3334255,
17.7224553
],
[
83.3333581,
17.7225326
],
[
83.3333418,
17.7225513
],
[
83.3332998,
17.7226009
],
[
83.3332398,
17.7226664
],
[
83.3330828,
17.7228287
],
[
83.3328316,
17.7230091
],
[
83.3326936,
17.7230736
],
[
83.3325435,
17.7231291
],
[
83.3323892,
17.7231706
],
[
83.3322237,
17.7232099
],
[
83.3321115,
17.7232269
],
[
83.3319528,
17.7232376
],
[
83.3318213,
17.723248
],
[
83.3317717,
17.7232468
],
[
83.3315273,
17.7232282
],
[
83.3312948,
17.7231566
],
[
83.3310904,
17.7230765
],
[
83.3309032,
17.7229854
],
[
83.33069,
17.7228768
],
[
83.3305451,
17.7228219
],
[
83.3302763,
17.7227389
],
[
83.3296193,
17.7225979
],
[
83.3290406,
17.7224377
],
[
83.3280125,
17.722103
],
[
83.327615,
17.7219812
],
[
83.3272662,
17.7218406
],
[
83.3271081,
17.7217627
],
[
83.32659,
17.7215472
],
[
83.3265449,
17.7215285
],
[
83.3261236,
17.7214349
],
[
83.3258771,
17.7213883
],
[
83.3255447,
17.7213191
],
[
83.3251817,
17.7212457
],
[
83.3245946,
17.7211183
],
[
83.3242512,
17.7210428
],
[
83.3241379,
17.7210172
],
[
83.3237961,
17.72094
],
[
83.3237628,
17.7209332
],
[
83.3233378,
17.720846
],
[
83.3232725,
17.7208433
],
[
83.3227729,
17.7208229
],
[
83.3224025,
17.7208077
],
[
83.3222894,
17.7208003
],
[
83.3221321,
17.7207858
],
[
83.3219265,
17.7207755
],
[
83.3217892,
17.7207703
],
[
83.3215367,
17.7207736
],
[
83.3212375,
17.7208213
],
[
83.3210418,
17.7208603
],
[
83.3207537,
17.7209065
],
[
83.3206315,
17.7209219
],
[
83.3203476,
17.7209402
],
[
83.3201823,
17.7209608
]
]
}
},
"oldVersion": {
"type": "Feature",
"id": "way!90800153!23",
"properties": {
"AND_a_nosr_r": "15062474",
"AND:importance_level": "2",
"highway": "secondary",
"osm:type": "way",
"osm:id": 90800153,
"osm:version": 9,
"osm:changeset": 37756012,
"osm:timestamp": 1457692023000,
"osm:uid": 3479270,
"osm:user": "nammala"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
83.3350236,
17.7220755
],
[
83.3348845,
17.7221054
],
[
83.3346842,
17.7221352
],
[
83.3342895,
17.7221956
],
[
83.3339606,
17.7222435
],
[
83.3337141,
17.7222982
],
[
83.3336216,
17.7223301
],
[
83.3334255,
17.7224553
],
[
83.3333581,
17.7225326
],
[
83.3333418,
17.7225513
],
[
83.3332998,
17.7226009
],
[
83.3332398,
17.7226664
],
[
83.3330828,
17.7228287
],
[
83.3328316,
17.7230091
],
[
83.3326936,
17.7230736
],
[
83.3325435,
17.7231291
],
[
83.3323892,
17.7231706
],
[
83.3322237,
17.7232099
],
[
83.3321115,
17.7232269
],
[
83.3319528,
17.7232376
],
[
83.3318213,
17.723248
],
[
83.3317717,
17.7232468
],
[
83.3315273,
17.7232282
],
[
83.3312948,
17.7231566
],
[
83.3310904,
17.7230765
],
[
83.3309032,
17.7229854
],
[
83.33069,
17.7228768
],
[
83.3305451,
17.7228219
],
[
83.3302763,
17.7227389
],
[
83.3296193,
17.7225979
],
[
83.3290406,
17.7224377
],
[
83.3280125,
17.722103
],
[
83.327615,
17.7219812
],
[
83.3272662,
17.7218406
],
[
83.3271081,
17.7217627
],
[
83.32659,
17.7215472
],
[
83.3265449,
17.7215285
],
[
83.3261236,
17.7214349
],
[
83.3258771,
17.7213883
],
[
83.3255447,
17.7213191
],
[
83.3251817,
17.7212457
],
[
83.3245946,
17.7211183
],
[
83.3242512,
17.7210428
],
[
83.3241379,
17.7210172
],
[
83.3237961,
17.72094
],
[
83.3237628,
17.7209332
],
[
83.3233378,
17.720846
],
[
83.3232725,
17.7208433
],
[
83.3227729,
17.7208229
],
[
83.3224025,
17.7208077
],
[
83.3222894,
17.7208003
],
[
83.3221321,
17.7207858
],
[
83.3219265,
17.7207755
],
[
83.3217892,
17.7207703
],
[
83.3215367,
17.7207736
],
[
83.3212375,
17.7208213
],
[
83.3210418,
17.7208603
],
[
83.3207537,
17.7209065
],
[
83.3206315,
17.7209219
],
[
83.3203476,
17.7209402
],
[
83.3201823,
17.7209608
]
]
}
},
"expectedResult": {}
},
{
"description": "major road failure - not major road",
"newVersion": {
"type": "Feature",
"id": "way!90800153!24",
"properties": {
"AND_a_nosr_r": "15062474",
"AND:importance_level": "2",
"highway": "tertiary",
"osm:type": "way",
"osm:id": 90800153,
"osm:version": 24,
"osm:changeset": 44390158,
"osm:timestamp": 1481696445000,
"osm:uid": 3479270,
"osm:user": "nammala"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
83.3350236,
17.7220755
],
[
83.3348845,
17.7221054
],
[
83.3346842,
17.7221352
],
[
83.3342895,
17.7221956
],
[
83.3339606,
17.7222435
],
[
83.3337141,
17.7222982
],
[
83.3336216,
17.7223301
],
[
83.3334255,
17.7224553
],
[
83.3333581,
17.7225326
],
[
83.3333418,
17.7225513
],
[
83.3332998,
17.7226009
],
[
83.3332398,
17.7226664
],
[
83.3330828,
17.7228287
],
[
83.3328316,
17.7230091
],
[
83.3326936,
17.7230736
],
[
83.3325435,
17.7231291
],
[
83.3323892,
17.7231706
],
[
83.3322237,
17.7232099
],
[
83.3321115,
17.7232269
],
[
83.3319528,
17.7232376
],
[
83.3318213,
17.723248
],
[
83.3317717,
17.7232468
],
[
83.3315273,
17.7232282
],
[
83.3312948,
17.7231566
],
[
83.3310904,
17.7230765
],
[
83.3309032,
17.7229854
],
[
83.33069,
17.7228768
],
[
83.3305451,
17.7228219
],
[
83.3302763,
17.7227389
],
[
83.3296193,
17.7225979
],
[
83.3290406,
17.7224377
],
[
83.3280125,
17.722103
],
[
83.327615,
17.7219812
],
[
83.3272662,
17.7218406
],
[
83.3271081,
17.7217627
],
[
83.32659,
17.7215472
],
[
83.3265449,
17.7215285
],
[
83.3261236,
17.7214349
],
[
83.3258771,
17.7213883
],
[
83.3255447,
17.7213191
],
[
83.3251817,
17.7212457
],
[
83.3245946,
17.7211183
],
[
83.3242512,
17.7210428
],
[
83.3241379,
17.7210172
],
[
83.3237961,
17.72094
],
[
83.3237628,
17.7209332
],
[
83.3233378,
17.720846
],
[
83.3232725,
17.7208433
],
[
83.3227729,
17.7208229
],
[
83.3224025,
17.7208077
],
[
83.3222894,
17.7208003
],
[
83.3221321,
17.7207858
],
[
83.3219265,
17.7207755
],
[
83.3217892,
17.7207703
],
[
83.3215367,
17.7207736
],
[
83.3212375,
17.7208213
],
[
83.3210418,
17.7208603
],
[
83.3207537,
17.7209065
],
[
83.3206315,
17.7209219
],
[
83.3203476,
17.7209402
],
[
83.3201823,
17.7209608
]
]
}
},
"oldVersion": {
"type": "Feature",
"id": "way!90800153!23",
"properties": {
"AND_a_nosr_r": "15062474",
"AND:importance_level": "2",
"highway": "residential",
"osm:type": "way",
"osm:id": 90800153,
"osm:version": 23,
"osm:changeset": 37756012,
"osm:timestamp": 1457692023000,
"osm:uid": 3479270,
"osm:user": "nammala"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
83.3350236,
17.7220755
],
[
83.3348845,
17.7221054
],
[
83.3346842,
17.7221352
],
[
83.3342895,
17.7221956
],
[
83.3339606,
17.7222435
],
[
83.3337141,
17.7222982
],
[
83.3336216,
17.7223301
],
[
83.3334255,
17.7224553
],
[
83.3333581,
17.7225326
],
[
83.3333418,
17.7225513
],
[
83.3332998,
17.7226009
],
[
83.3332398,
17.7226664
],
[
83.3330828,
17.7228287
],
[
83.3328316,
17.7230091
],
[
83.3326936,
17.7230736
],
[
83.3325435,
17.7231291
],
[
83.3323892,
17.7231706
],
[
83.3322237,
17.7232099
],
[
83.3321115,
17.7232269
],
[
83.3319528,
17.7232376
],
[
83.3318213,
17.723248
],
[
83.3317717,
17.7232468
],
[
83.3315273,
17.7232282
],
[
83.3312948,
17.7231566
],
[
83.3310904,
17.7230765
],
[
83.3309032,
17.7229854
],
[
83.33069,
17.7228768
],
[
83.3305451,
17.7228219
],
[
83.3302763,
17.7227389
],
[
83.3296193,
17.7225979
],
[
83.3290406,
17.7224377
],
[
83.3280125,
17.722103
],
[
83.327615,
17.7219812
],
[
83.3272662,
17.7218406
],
[
83.3271081,
17.7217627
],
[
83.32659,
17.7215472
],
[
83.3265449,
17.7215285
],
[
83.3261236,
17.7214349
],
[
83.3258771,
17.7213883
],
[
83.3255447,
17.7213191
],
[
83.3251817,
17.7212457
],
[
83.3245946,
17.7211183
],
[
83.3242512,
17.7210428
],
[
83.3241379,
17.7210172
],
[
83.3237961,
17.72094
],
[
83.3237628,
17.7209332
],
[
83.3233378,
17.720846
],
[
83.3232725,
17.7208433
],
[
83.3227729,
17.7208229
],
[
83.3224025,
17.7208077
],
[
83.3222894,
17.7208003
],
[
83.3221321,
17.7207858
],
[
83.3219265,
17.7207755
],
[
83.3217892,
17.7207703
],
[
83.3215367,
17.7207736
],
[
83.3212375,
17.7208213
],
[
83.3210418,
17.7208603
],
[
83.3207537,
17.7209065
],
[
83.3206315,
17.7209219
],
[
83.3203476,
17.7209402
],
[
83.3201823,
17.7209608
]
]
}
},
"expectedResult": {}
}
]
}