More changes than expected. Mobile version improvements & PWA
Build & Push Docker Images / test-backend (push) Successful in 44s
Build & Push Docker Images / test-frontend (push) Successful in 52s
Build & Push Docker Images / build-backend (push) Failing after 34s
Build & Push Docker Images / build-frontend (push) Failing after 30s
Build & Push Docker Images / test-backend (push) Successful in 44s
Build & Push Docker Images / test-frontend (push) Successful in 52s
Build & Push Docker Images / build-backend (push) Failing after 34s
Build & Push Docker Images / build-frontend (push) Failing after 30s
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
* Shared helpers: OSM tags → single-line address, element → pharmacy row.
|
||||
*/
|
||||
|
||||
import { parseOsmOpeningHours } from './opening-hours-osm.js';
|
||||
|
||||
export function buildAddressFromOsmTags(tags) {
|
||||
if (!tags || typeof tags !== 'object') return '';
|
||||
if (tags['addr:full'] && String(tags['addr:full']).trim()) {
|
||||
@@ -47,11 +49,14 @@ export function osmElementToPharmacy(el) {
|
||||
const phone =
|
||||
tags.phone || tags['contact:phone'] || tags['contact:mobile'] || tags['contact:whatsapp'] || null;
|
||||
|
||||
const opening_hours = parseOsmOpeningHours(tags.opening_hours);
|
||||
|
||||
return {
|
||||
name,
|
||||
address: address || null,
|
||||
phone: phone ? String(phone).trim() : null,
|
||||
latitude: Number.isFinite(lat) ? lat : null,
|
||||
longitude: Number.isFinite(lon) ? lon : null,
|
||||
opening_hours: opening_hours || null,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user