@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.
22 lines (21 loc) • 1.59 kB
TypeScript
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 } from "../../model/json/open-street-map/OsmJson";
import { FoodEstablishment } from "../../model/json/schema-org-json-ld/FoodEstablishment";
import { JsonLd } from "../../model/json/schema-org-json-ld/JsonLd";
import { LocalBusiness } from "../../model/json/schema-org-json-ld/LocalBusiness";
import { NativeGastroLocation } from "../../model/json/native/NativeGastroLocation";
import { Config } from "../Config";
import { NativeShoppingLocation } from "../../model/json/native/NativeShoppingLocation";
export declare class SchemaOrgConverter {
private readonly config;
private readonly overpassConverter;
constructor(config?: Config);
convertGastroLocations(locations: NativeGastroLocation[]): JsonLd<FoodEstablishment>[];
convertShoppingLocations(locations: NativeShoppingLocation[]): JsonLd<LocalBusiness>[];
convertGastroLocationElement(e: OsmJsonElement<OsmGastroLocationTags, OsmGastroLocationCustomTags>): JsonLd<FoodEstablishment>;
convertShoppingLocationElement(e: OsmJsonElement<OsmShoppingLocationTags, OsmShoppingLocationCustomTags>): JsonLd<LocalBusiness>;
private getLocalBusiness;
}