UNPKG

@berlin-vegan/berlin-vegan-data-js

Version:

A library and stand-alone program that specifies the native open-source JSON format used by Berlin-Vegan and allows to convert data in this format to be converted to OpenStreetMap/Overpass and Schema.org JSON formats.

29 lines (28 loc) 853 B
import { OsmLocationCustomTags } from "./OsmLocationCustomTags"; import { OsmLocationTags } from "./OsmLocationTags"; /** * https://wiki.openstreetmap.org/wiki/Overpass_turbo/GeoJSON */ export interface OverpassGeoJSON<T extends OsmLocationTags, C extends OsmLocationCustomTags> { "type": "FeatureCollection"; "generator": string; "copyright": string; "timestamp": string; "features": OverpassGeoJSONFeature<T, C>[]; } export interface OverpassGeoJSONFeature<T extends OsmLocationTags, C extends OsmLocationCustomTags> { "type": "Feature"; "id": string; "geometry": { "type": "Point"; /** * [longitude, latitude] * * Or [x, y]. */ "coordinates": [number, number]; }; "properties": T & C & { "@id": string; }; }