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.

27 lines 770 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var gastroTags = ["Bar", "Cafe", "Eiscafe", "Imbiss", "Restaurant"]; var shoppingTags = [ "foods", "clothing", "toiletries", "supermarket", "hairdressers", "sports", "tattoostudio", "accommodation", ]; function isGastroLocation(location) { var tags = location.tags; if (tags.some(function (it) { return gastroTags.includes(it); })) { return true; } else if (tags.some(function (it) { return shoppingTags.includes(it); })) { return false; } else { throw new Error("Cannot determine type of location."); } } exports.isGastroLocation = isGastroLocation; //# sourceMappingURL=Misc.js.map