compare-geojson
Version:
Compare a features new and old versions in GeoJSON
73 lines (72 loc) • 1.61 kB
JSON
{
"compareFunction": "invalid-highway-tags",
"fixtures": [
{
"description": "Looking for the highway with invalid tag highway=junction ",
"newVersion": {
"type": "Feature",
"properties": {
"highway": "junction"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
83.33335071802139,
17.7251960851791
],
[
83.33353847265244,
17.725829693891324
],
[
83.33366185426712,
17.726299789230563
],
[
83.33373963832855,
17.726568049605337
]
]
}
},
"oldVersion": null,
"expectedResult": {
"result:invalidHighwayTags": true
}
},
{
"description": "Test for a valid tag in highway=yes",
"newVersion": {
"type": "Feature",
"properties": {
"highway": "trunk"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
83.33335071802139,
17.7251960851791
],
[
83.33353847265244,
17.725829693891324
],
[
83.33366185426712,
17.726299789230563
],
[
83.33373963832855,
17.726568049605337
]
]
}
},
"oldVersion": null,
"expectedResult": {
}
}
]
}