@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.
21 lines (20 loc) • 629 B
TypeScript
import { OsmLocationCustomTags } from "./OsmLocationCustomTags";
import { OsmLocationTags } from "./OsmLocationTags";
/**
* https://wiki.openstreetmap.org/wiki/OSM_JSON
*/
export interface OsmJson<T extends OsmLocationTags, C extends OsmLocationCustomTags> {
"version": number;
"generator": string;
"copyright": string;
"license"?: string;
"elements": OsmJsonElement<T, C>[];
}
export interface OsmJsonElement<T extends OsmLocationTags, C extends OsmLocationCustomTags> {
"type": "node";
"id": number;
"lat": number;
"lon": number;
"tags": T;
"custom_tags": C;
}