@vpriem/geojson

GeoJSON TypeScript definitions exported as a package.

Usage no npm install needed!

<script type="module">
  import vpriemGeojson from 'https://cdn.skypack.dev/@vpriem/geojson';
</script>

README

geojson

GeoJSON TypeScript definitions exported as a package.

Exported from @types/geojson.

Install

yarn add @vpriem/geojson

Usage

import { Feature, Point } from '@vpriem/geojson';

const feature: Feature<Point> = {
    type: 'Feature',
    geometry: {
        type: 'Point',
        coordinates: [13.404954, 52.520008],
    },
};

License

MIT