null-island

Generate GeoJSON features from the Republic of Null Island.

Usage no npm install needed!

<script type="module">
  import nullIsland from 'https://cdn.skypack.dev/null-island';
</script>

README

Build Status

null-island

Generate GeoJSON features from the Republic of Null Island.

Useful for test fixtures and datasets to be geocoded.

Null bomb:

➜  null-island git:(from-the-cli) cat ../marco/test/fixtures/dataset.csv | node cli.js --pipe                  
{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}}
{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}}
{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}}
{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}}
{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}}

JS:

var feature = JSON.parse(nils.nullIsland());
t.deepEqual(feature.geometry.coordinates, [0, 0], '0°N 0°E');

Where's Null Island? CLICK HERE