UNPKG

compare-geojson

Version:

Compare a features new and old versions in GeoJSON

62 lines (61 loc) 1.73 kB
{ "compareFunction": "low_zoom_features", "fixtures": [ { "description": "Test low zoom features with city", "expectedResult": { "result:low_zoom_features": { "cfVersion": 2, "lowZoomCount": 1, "lowZoomFeatures": { "place": [ "city" ] } } }, "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": null } ] }