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.

20 lines (19 loc) 1.58 kB
import { NativeGastroLocation } from "../../model/json/native/NativeGastroLocation"; import { NativeShoppingLocation } from "../../model/json/native/NativeShoppingLocation"; import { OsmGastroLocationCustomTags } from "../../model/json/open-street-map/OsmGastroLocationCustomTags"; import { OsmGastroLocationTags } from "../../model/json/open-street-map/OsmGastroLocationTags"; import { OsmShoppingLocationCustomTags } from "../../model/json/open-street-map/OsmShoppingLocationCustomTags"; import { OsmShoppingLocationTags } from "../../model/json/open-street-map/OsmShoppingLocationTags"; import { OverpassGeoJSON, OverpassGeoJSONFeature } from "../../model/json/open-street-map/OverpassGeoJSON"; import { OsmConfig, OverpassConfig } from "../Config"; export declare class OverpassGeoJSONConverter { private readonly overpassConfig; private readonly osmTagsConverter; constructor(osmConfig?: OsmConfig, overpassConfig?: OverpassConfig); convertGastroLocations(locations: NativeGastroLocation[]): OverpassGeoJSON<OsmGastroLocationTags, OsmGastroLocationCustomTags>; convertShoppingLocations(locations: NativeShoppingLocation[]): OverpassGeoJSON<OsmShoppingLocationTags, OsmShoppingLocationCustomTags>; private convertLocations; convertGastroLocation(location: NativeGastroLocation): OverpassGeoJSONFeature<OsmGastroLocationTags, OsmGastroLocationCustomTags>; convertShoppingLocation(location: NativeShoppingLocation): OverpassGeoJSONFeature<OsmShoppingLocationTags, OsmShoppingLocationCustomTags>; private convertLocation; }