B:BD[
2.3785] → [
2.3785:4801]
fuck2.json.timeZoneId
//how to determine if store is open?
//also find timezone with api, modify time X because https://stackoverflow.com/questions/40246420/postgresql-handling-of-full-time-zones-for-timetz-data-type
// let store = await pool.query('insert into stores values ($1, $2, $3, $4, $5, $6, $7, $8, $9, point($10, $11), $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26) returning id', [parameters.name, parameters.URL, parameters.address, parameters.address2, parameters.city, parameters.region, parameters.country, parameters.postal_code, parameters.currency_abbreviation, x, y, parameters.monday_open, parameters.monday_close, parameters.tuesday_open, parameters.tuesday_close, parameters.wednesday_open, parameters.wednesday_close, parameters.thursday_open, parameters.thursday_close, parameters.friday_open, parameters.friday_close, parameters.saturday_open, parameters.saturday_close, parameters.sunday_open, parameters.sunday_close]);
let store = await pool.query('insert into store values (default, $1, $2, $3, $4, $5, $6, $7, $8, point($9, $10), $11) returning id', [
parameters.name,
parameters.URL,
parameters.address,
parameters.address2,
parameters.city,
parameters.region,
parameters.country,
parameters.postal_code,
fuck.json.results[0].geometry.location.lat,
fuck.json.results[0].geometry.location.lng,
fuck2.json.timeZoneId
]);