compare-geojson
Version:
Compare a features new and old versions in GeoJSON
128 lines (127 loc) • 2.99 kB
JSON
{
"compareFunction": "pokemon-footway",
"fixtures": [
{
"description": "Looking for highway = footway with version != 1 and new mapper",
"newVersion": {
"type": "Feature",
"properties": {
"highway": "footway",
"osm:version": 4,
"osm:uid": 5008734
},
"geometry": {
"type": "LineString",
"coordinates": [
[
77.57569670677185,
12.969890973519856
],
[
77.57473111152648,
12.968186782548875
],
[
77.57380843162537,
12.96650349043761
]
]
}
},
"oldVersion": null,
"expectedResult": {}
},
{
"description": "Looking for highway != footway with version != 1 and new mapper",
"newVersion": {
"type": "Feature",
"properties": {
"highway": "primary",
"osm:version": 4,
"osm:uid": 5008734
},
"geometry": {
"type": "LineString",
"coordinates": [
[
77.57569670677185,
12.969890973519856
],
[
77.57473111152648,
12.968186782548875
],
[
77.57380843162537,
12.96650349043761
]
]
}
},
"oldVersion": null,
"expectedResult": {}
},
{
"description": "Looking for highway = footway with version = 1 and old mapper",
"newVersion": {
"type": "Feature",
"properties": {
"highway": "footway",
"osm:version": 1,
"osm:uid": 81735
},
"geometry": {
"type": "LineString",
"coordinates": [
[
77.57569670677185,
12.969890973519856
],
[
77.57473111152648,
12.968186782548875
],
[
77.57380843162537,
12.96650349043761
]
]
}
},
"oldVersion": null,
"expectedResult": {}
},
{
"description": "Looking for highway = footway with version = 1 and new mapper",
"newVersion": {
"type": "Feature",
"properties": {
"highway": "footway",
"osm:version": 1,
"osm:uid": 5008734
},
"geometry": {
"type": "LineString",
"coordinates": [
[
77.57569670677185,
12.969890973519856
],
[
77.57473111152648,
12.968186782548875
],
[
77.57380843162537,
12.96650349043761
]
]
}
},
"oldVersion": null,
"expectedResult": {
"result:pokemon_footway": true
}
}
]
}