UNPKG

@mapbox/geojson-types

Version:

Flow type declarations for [GeoJSON](https://tools.ietf.org/html/rfc7946).

31 lines (29 loc) 413 B
// @flow import type { GeoJSONGeometry } from '../../index'; const geojson: GeoJSONGeometry = { "type": "GeometryCollection", "geometries": [ { "type": "Point", "coordinates": [ 100, 0 ] }, { "type": "LineString", "coordinates": [ [ 101, 0 ], [ 102, 1 ] ] } ] }