@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.
18 lines (17 loc) • 1.46 kB
TypeScript
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 { OsmJsonElement, OsmJson } from "../../model/json/open-street-map/OsmJson";
import { OsmConfig, OverpassConfig } from "../Config";
export declare class OsmJsonConverter {
private readonly overpassConfig;
private readonly osmTagsConverter;
constructor(osmConfig?: OsmConfig, overpassConfig?: OverpassConfig);
convertGastroLocations(locations: NativeGastroLocation[]): OsmJson<OsmGastroLocationTags, OsmGastroLocationCustomTags>;
convertShoppingLocations(locations: NativeShoppingLocation[]): OsmJson<OsmShoppingLocationTags, OsmShoppingLocationCustomTags>;
convertGastroLocation(location: NativeGastroLocation): OsmJsonElement<OsmGastroLocationTags, OsmGastroLocationCustomTags>;
convertShoppingLocation(location: NativeShoppingLocation): OsmJsonElement<OsmShoppingLocationTags, OsmShoppingLocationCustomTags>;
}