UNPKG

@publidata/utils-opening-hours

Version:

Collection of methods to handle opening hours

28 lines (24 loc) 637 B
let nominatim = { place_id: "178940152", licence: "Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright", osm_type: "relation", osm_id: "8649", lat: "48.6443057", lon: "2.7537863", display_name: "Île-de-France, France métropolitaine, France", address: { state: "Île-de-France", country: "France", country_code: "fr" }, boundingbox: ["48.1201456", "49.241431", "1.4462445", "3.5592208"] }; const setNominatim = (newNominatim) => { nominatim = newNominatim; }; const getNominatim = () => nominatim; module.exports = { get: getNominatim, set: setNominatim, };