compare-geojson
Version:
Compare a features new and old versions in GeoJSON
1,572 lines (1,571 loc) • 38.7 kB
JSON
{
"compareFunction": "landmark_score",
"fixtures": [
{
"description": "Changed object had no landmark score",
"newVersion": {
"type": "Feature",
"id": "node!4007681408!2",
"properties": {
"name": "Colônia Terra Nova",
"place": "suburb",
"osm:type": "node",
"osm:id": 4007681408,
"osm:version": 12,
"osm:changeset": 37338289,
"osm:timestamp": 1456016744000,
"osm:uid": 701711,
"osm:user": "luisgustavo1968"
},
"geometry": {
"type": "Point",
"coordinates": [
-49.9747202,
-24.867769
]
}
},
"oldVersion": {
"type": "Feature",
"id": "node!4007681408!2",
"properties": {
"name": "Colônia Terra Nova",
"place": "suburb",
"osm:type": "node",
"osm:id": 4007681408,
"osm:version": 3,
"osm:changeset": 59124892,
"osm:timestamp": 2456016744000,
"osm:uid": 701711,
"osm:user": "luisgustavo1968"
},
"geometry": {
"type": "Point",
"coordinates": [
-49.5747202,
-24.467769
]
}
},
"expectedResult": {}
},
{
"description": "Changed object has wikipedia tag that doesnt exist in our database",
"newVersion": {
"type": "Feature",
"id": "node!4007681408!2",
"properties": {
"name": "Colônia Terra Nova",
"place": "suburb",
"wikipedia": "foobar",
"osm:type": "node",
"osm:id": 4007681408,
"osm:version": 2,
"osm:changeset": 37338289,
"osm:timestamp": 1456016744000,
"osm:uid": 701711,
"osm:user": "luisgustavo1968"
},
"geometry": {
"type": "Point",
"coordinates": [
-77.03667,
38.89766
]
}
},
"oldVersion": {
"type": "Feature",
"id": "node!4007681408!2",
"properties": {
"name": "Colônia Terra Nova",
"place": "suburb",
"wikipedia": "foobar",
"osm:type": "node",
"osm:id": 4007681408,
"osm:version": 3,
"osm:changeset": 59124892,
"osm:timestamp": 2456016744000,
"osm:uid": 701711,
"osm:user": "luisgustavo1968"
},
"geometry": {
"type": "Point",
"coordinates": [
-77.03667,
38.89766
]
}
},
"expectedResult": {}
},
{
"description": "Changed object has wikipedia tag and is near the expected location",
"newVersion": {
"type": "Feature",
"id": "node!4007681408!2",
"properties": {
"name": "Colônia Terra Nova",
"place": "suburb",
"wikipedia": "en:White House",
"osm:type": "node",
"osm:id": 4007681408,
"osm:version": 12,
"osm:changeset": 37338289,
"osm:timestamp": 1456016744000,
"osm:uid": 701711,
"osm:user": "luisgustavo1968"
},
"geometry": {
"type": "Point",
"coordinates": [
-77.03667,
38.89766
]
}
},
"oldVersion": {
"type": "Feature",
"id": "node!4007681408!2",
"properties": {
"name": "Colônia Terra Nova",
"place": "suburb",
"wikipedia": "en:White House",
"osm:type": "node",
"osm:id": 4007681408,
"osm:version": 13,
"osm:changeset": 59124892,
"osm:timestamp": 2456016744000,
"osm:uid": 701711,
"osm:user": "luisgustavo1968"
},
"geometry": {
"type": "Point",
"coordinates": [
-77.03667,
38.89766
]
}
},
"expectedResult": {
"result:landmark_score": true
}
},
{
"description": "Changed object has wikidata tag and is near the expected location",
"newVersion": {
"type": "Feature",
"id": "node!4007681408!2",
"properties": {
"name": "Colônia Terra Nova",
"place": "suburb",
"wikidata": "Q35525",
"osm:type": "node",
"osm:id": 4007681408,
"osm:version": 2,
"osm:changeset": 37338289,
"osm:timestamp": 1456016744000,
"osm:uid": 701711,
"osm:user": "luisgustavo1968"
},
"geometry": {
"type": "Point",
"coordinates": [
-77.03667,
38.89766
]
}
},
"oldVersion": {
"type": "Feature",
"id": "node!4007681408!2",
"properties": {
"name": "Colônia Terra Nova",
"place": "suburb",
"wikidata": "Q35525",
"osm:type": "node",
"osm:id": 4007681408,
"osm:version": 3,
"osm:changeset": 59124892,
"osm:timestamp": 2456016744000,
"osm:uid": 701711,
"osm:user": "luisgustavo1968"
},
"geometry": {
"type": "Point",
"coordinates": [
-77.03667,
38.89766
]
}
},
"expectedResult": {}
},
{
"description": "Changed object has wikidata tag that doesnt exist in our database",
"newVersion": {
"type": "Feature",
"id": "way!24464264!33",
"properties": {
"boundary": "national_park",
"highway": "primary",
"is_in": "Malawi",
"landuse": "conservation",
"name": "Liwonde National Park",
"wikidata": "Q2739189",
"wikipedia": "en:Liwonde National Park",
"osm:type": "way",
"osm:id": 24464264,
"osm:version": 33,
"osm:changeset": 41576998,
"osm:timestamp": 1471702625000,
"osm:uid": 170672,
"osm:user": "1248"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
35.4158031,
-14.8203764
],
[
35.4010402,
-14.8077638
],
[
35.3891956,
-14.7968101
],
[
35.386964,
-14.7822044
],
[
35.3756343,
-14.7810425
],
[
35.3643047,
-14.7737392
],
[
35.3604316,
-14.7714072
],
[
35.3582,
-14.7700793
],
[
35.35614,
-14.7667595
],
[
35.3549384,
-14.7626096
],
[
35.3537368,
-14.7611157
],
[
35.3515052,
-14.7609497
],
[
35.3494452,
-14.7626096
],
[
35.3496169,
-14.7655975
],
[
35.3497886,
-14.7692493
],
[
35.347557,
-14.7714072
],
[
35.3432654,
-14.7724031
],
[
35.3381156,
-14.7694153
],
[
35.3254126,
-14.7601197
],
[
35.3223227,
-14.7405312
],
[
35.3324508,
-14.7304043
],
[
35.3324508,
-14.7244275
],
[
35.3479003,
-14.7197788
],
[
35.3712462,
-14.7133036
],
[
35.3791427,
-14.7109791
],
[
35.3861808,
-14.7088207
],
[
35.3894423,
-14.7071603
],
[
35.3806876,
-14.6928806
],
[
35.3918456,
-14.6669756
],
[
35.4000853,
-14.6619936
],
[
35.4224091,
-14.6623739
],
[
35.4004664,
-14.5982459
],
[
35.3985481,
-14.5942742
],
[
35.3894423,
-14.6091765
],
[
35.3633498,
-14.6116681
],
[
35.345497,
-14.6433928
],
[
35.3391133,
-14.6459031
],
[
35.3343068,
-14.6566983
],
[
35.3209172,
-14.6696518
],
[
35.3090726,
-14.6757961
],
[
35.3101025,
-14.6794494
],
[
35.3106175,
-14.6850953
],
[
35.2994595,
-14.6924016
],
[
35.2953397,
-14.6967188
],
[
35.2949963,
-14.7061831
],
[
35.2924214,
-14.7105001
],
[
35.2915631,
-14.7154811
],
[
35.2783091,
-14.7261671
],
[
35.2770326,
-14.727614
],
[
35.2762276,
-14.7279129
],
[
35.2750242,
-14.7291318
],
[
35.2742274,
-14.7293598
],
[
35.27178,
-14.731019
],
[
35.271097,
-14.7318526
],
[
35.2705766,
-14.7327176
],
[
35.2704872,
-14.7332838
],
[
35.2704546,
-14.7336691
],
[
35.2700318,
-14.7339522
],
[
35.269983,
-14.7342589
],
[
35.2700481,
-14.7345419
],
[
35.2705929,
-14.7346599
],
[
35.2737477,
-14.7338264
],
[
35.2751706,
-14.7342589
],
[
35.2766504,
-14.7342038
],
[
35.2781735,
-14.7390561
],
[
35.2740536,
-14.7407163
],
[
35.2766286,
-14.7447005
],
[
35.2793752,
-14.7447005
],
[
35.2773152,
-14.7534988
],
[
35.2798901,
-14.7611347
],
[
35.2797185,
-14.7787296
],
[
35.2701922,
-14.7930617
],
[
35.2707072,
-14.8058411
],
[
35.2767154,
-14.814471
],
[
35.2808352,
-14.8343847
],
[
35.2828952,
-14.8385331
],
[
35.2803203,
-14.8451705
],
[
35.2783559,
-14.8538587
],
[
35.2825456,
-14.8682059
],
[
35.2785489,
-14.8777225
],
[
35.2795753,
-14.879869
],
[
35.2801004,
-14.8837002
],
[
35.2803777,
-14.8857236
],
[
35.2804162,
-14.8860043
],
[
35.277402,
-14.896935
],
[
35.2775737,
-14.9009163
],
[
35.2791186,
-14.914187
],
[
35.2753271,
-14.9207785
],
[
35.2659616,
-14.93506
],
[
35.2637211,
-14.9433692
],
[
35.2600573,
-14.9492681
],
[
35.2545039,
-14.9553077
],
[
35.2538166,
-14.9628654
],
[
35.2472048,
-14.9725725
],
[
35.2456639,
-14.9733057
],
[
35.2385862,
-14.9834146
],
[
35.23728,
-14.9859643
],
[
35.2341792,
-14.9893221
],
[
35.2318711,
-14.9941946
],
[
35.2299446,
-14.9985171
],
[
35.2285481,
-14.9993304
],
[
35.2282322,
-14.9995144
],
[
35.2277151,
-14.9998156
],
[
35.2232616,
-15.0006139
],
[
35.2230806,
-15.0007428
],
[
35.2228372,
-15.0011885
],
[
35.2213347,
-15.0051692
],
[
35.2216551,
-15.0095921
],
[
35.2214443,
-15.011347
],
[
35.2213181,
-15.0120476
],
[
35.2205355,
-15.0138245
],
[
35.2192732,
-15.0182298
],
[
35.2219785,
-15.0267167
],
[
35.2221675,
-15.0273096
],
[
35.2222129,
-15.0274521
],
[
35.2249064,
-15.0294503
],
[
35.2273189,
-15.0303675
],
[
35.232812,
-15.0290412
],
[
35.2379619,
-15.028378
],
[
35.2424251,
-15.0303675
],
[
35.246545,
-15.0333517
],
[
35.2516948,
-15.0396515
],
[
35.2587995,
-15.0490199
],
[
35.2589261,
-15.0492588
],
[
35.2637111,
-15.056229
],
[
35.2674876,
-15.0592128
],
[
35.2720638,
-15.0588699
],
[
35.2733241,
-15.0587362
],
[
35.2750778,
-15.0585289
],
[
35.2778765,
-15.0582293
],
[
35.2799764,
-15.0580189
],
[
35.281285,
-15.0578348
],
[
35.2823857,
-15.0576623
],
[
35.2851059,
-15.0572967
],
[
35.2877559,
-15.0569073
],
[
35.2980434,
-15.0532451
],
[
35.3021632,
-15.0509243
],
[
35.3066264,
-15.0439617
],
[
35.3121196,
-15.0409777
],
[
35.3217326,
-15.039983
],
[
35.3285991,
-15.0406462
],
[
35.3330623,
-15.0466142
],
[
35.3395854,
-15.0469457
],
[
35.3522884,
-15.0486035
],
[
35.3605281,
-15.0499297
],
[
35.3722011,
-15.0479404
],
[
35.3639613,
-15.0308649
],
[
35.3675662,
-15.0285438
],
[
35.3756343,
-15.0190936
],
[
35.3812991,
-15.0174356
],
[
35.3890239,
-15.0210832
],
[
35.3945171,
-15.0207516
],
[
35.3938304,
-15.0167724
],
[
35.3991519,
-15.0081507
],
[
35.4055034,
-14.9983679
],
[
35.4049884,
-14.9920669
],
[
35.4005252,
-14.9854341
],
[
35.3831874,
-14.9721678
],
[
35.3837024,
-14.9346861
],
[
35.384389,
-14.9006816
],
[
35.385419,
-14.8825989
],
[
35.4151164,
-14.8464291
],
[
35.4158031,
-14.8203764
]
]
]
]
}
},
"oldVersion": {
"type": "Feature",
"id": "way!24464264!32",
"properties": {
"boundary": "national_park",
"highway": "primary",
"is_in": "Malawi",
"landuse": "conservation",
"name": "Liwonde National Park",
"wikidata": "Q2739189",
"wikipedia": "en:Liwonde National Park",
"osm:type": "way",
"osm:id": 24464264,
"osm:version": 32,
"osm:changeset": 41460702,
"osm:timestamp": 1471240851000,
"osm:uid": 4422557,
"osm:user": "cjn991"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
35.4158031,
-14.8203764
],
[
35.4010402,
-14.8077638
],
[
35.3891956,
-14.7968101
],
[
35.386964,
-14.7822044
],
[
35.3756343,
-14.7810425
],
[
35.3643047,
-14.7737392
],
[
35.3604316,
-14.7714072
],
[
35.3582,
-14.7700793
],
[
35.35614,
-14.7667595
],
[
35.3549384,
-14.7626096
],
[
35.3537368,
-14.7611157
],
[
35.3515052,
-14.7609497
],
[
35.3494452,
-14.7626096
],
[
35.3496169,
-14.7655975
],
[
35.3497886,
-14.7692493
],
[
35.347557,
-14.7714072
],
[
35.3432654,
-14.7724031
],
[
35.3381156,
-14.7694153
],
[
35.3254126,
-14.7601197
],
[
35.3223227,
-14.7405312
],
[
35.3324508,
-14.7304043
],
[
35.3324508,
-14.7244275
],
[
35.3479003,
-14.7197788
],
[
35.3712462,
-14.7133036
],
[
35.3791427,
-14.7109791
],
[
35.3861808,
-14.7088207
],
[
35.3894423,
-14.7071603
],
[
35.3806876,
-14.6928806
],
[
35.3918456,
-14.6669756
],
[
35.4000853,
-14.6619936
],
[
35.4224091,
-14.6623739
],
[
35.4004664,
-14.5982459
],
[
35.3985481,
-14.5942742
],
[
35.3894423,
-14.6091765
],
[
35.3633498,
-14.6116681
],
[
35.345497,
-14.6433928
],
[
35.3391133,
-14.6459031
],
[
35.3343068,
-14.6566983
],
[
35.3209172,
-14.6696518
],
[
35.3090726,
-14.6757961
],
[
35.3101025,
-14.6794494
],
[
35.3106175,
-14.6850953
],
[
35.2994595,
-14.6924016
],
[
35.2953397,
-14.6967188
],
[
35.2949963,
-14.7061831
],
[
35.2924214,
-14.7105001
],
[
35.2915631,
-14.7154811
],
[
35.2783091,
-14.7261671
],
[
35.2770326,
-14.727614
],
[
35.2762276,
-14.7279129
],
[
35.2750242,
-14.7291318
],
[
35.2742274,
-14.7293598
],
[
35.27178,
-14.731019
],
[
35.271097,
-14.7318526
],
[
35.2705766,
-14.7327176
],
[
35.2704872,
-14.7332838
],
[
35.2704546,
-14.7336691
],
[
35.2700318,
-14.7339522
],
[
35.269983,
-14.7342589
],
[
35.2700481,
-14.7345419
],
[
35.2705929,
-14.7346599
],
[
35.2737477,
-14.7338264
],
[
35.2751706,
-14.7342589
],
[
35.2766504,
-14.7342038
],
[
35.2781735,
-14.7390561
],
[
35.2740536,
-14.7407163
],
[
35.2766286,
-14.7447005
],
[
35.2793752,
-14.7447005
],
[
35.2773152,
-14.7534988
],
[
35.2798901,
-14.7611347
],
[
35.2797185,
-14.7787296
],
[
35.2701922,
-14.7930617
],
[
35.2707072,
-14.8058411
],
[
35.2767154,
-14.814471
],
[
35.2808352,
-14.8343847
],
[
35.2828952,
-14.8385331
],
[
35.2803203,
-14.8451705
],
[
35.2783559,
-14.8538587
],
[
35.2825456,
-14.8682059
],
[
35.2785489,
-14.8777225
],
[
35.2795753,
-14.879869
],
[
35.2801004,
-14.8837002
],
[
35.2803777,
-14.8857236
],
[
35.2804162,
-14.8860043
],
[
35.277402,
-14.896935
],
[
35.2775737,
-14.9009163
],
[
35.2791186,
-14.914187
],
[
35.2753271,
-14.9207785
],
[
35.2659616,
-14.93506
],
[
35.2637211,
-14.9433692
],
[
35.2600573,
-14.9492681
],
[
35.2545039,
-14.9553077
],
[
35.2538166,
-14.9628654
],
[
35.2472048,
-14.9725725
],
[
35.2456639,
-14.9733057
],
[
35.2385862,
-14.9834146
],
[
35.23728,
-14.9859643
],
[
35.2341792,
-14.9893221
],
[
35.2318711,
-14.9941946
],
[
35.2299446,
-14.9985171
],
[
35.2285481,
-14.9993304
],
[
35.2282322,
-14.9995144
],
[
35.2277151,
-14.9998156
],
[
35.2232616,
-15.0006139
],
[
35.2230806,
-15.0007428
],
[
35.2228372,
-15.0011885
],
[
35.2213347,
-15.0051692
],
[
35.2216551,
-15.0095921
],
[
35.2214443,
-15.011347
],
[
35.2213181,
-15.0120476
],
[
35.2205355,
-15.0138245
],
[
35.2192732,
-15.0182298
],
[
35.2219785,
-15.0267167
],
[
35.2221675,
-15.0273096
],
[
35.2222129,
-15.0274521
],
[
35.2249064,
-15.0294503
],
[
35.2273189,
-15.0303675
],
[
35.232812,
-15.0290412
],
[
35.2379619,
-15.028378
],
[
35.2424251,
-15.0303675
],
[
35.246545,
-15.0333517
],
[
35.2516948,
-15.0396515
],
[
35.2587995,
-15.0490199
],
[
35.2589261,
-15.0492588
],
[
35.2637111,
-15.056229
],
[
35.2674876,
-15.0592128
],
[
35.2720638,
-15.0588699
],
[
35.2733241,
-15.0587362
],
[
35.2750778,
-15.0585289
],
[
35.2778765,
-15.0582293
],
[
35.2799764,
-15.0580189
],
[
35.281285,
-15.0578348
],
[
35.2823857,
-15.0576623
],
[
35.2851059,
-15.0572967
],
[
35.2877559,
-15.0569073
],
[
35.2980434,
-15.0532451
],
[
35.3021632,
-15.0509243
],
[
35.3066264,
-15.0439617
],
[
35.3121196,
-15.0409777
],
[
35.3217326,
-15.039983
],
[
35.3285991,
-15.0406462
],
[
35.3330623,
-15.0466142
],
[
35.3395854,
-15.0469457
],
[
35.3522884,
-15.0486035
],
[
35.3605281,
-15.0499297
],
[
35.3722011,
-15.0479404
],
[
35.3639613,
-15.0308649
],
[
35.3675662,
-15.0285438
],
[
35.3756343,
-15.0190936
],
[
35.3812991,
-15.0174356
],
[
35.3890239,
-15.0210832
],
[
35.3945171,
-15.0207516
],
[
35.3938304,
-15.0167724
],
[
35.3991519,
-15.0081507
],
[
35.4055034,
-14.9983679
],
[
35.4049884,
-14.9920669
],
[
35.4005252,
-14.9854341
],
[
35.3831874,
-14.9721678
],
[
35.3837024,
-14.9346861
],
[
35.384389,
-14.9006816
],
[
35.385419,
-14.8825989
],
[
35.4151164,
-14.8464291
],
[
35.4158031,
-14.8203764
]
]
]
]
}
},
"expectedResult": {}
}
]
}