Handle and store OSM type and tags properly

This commit is contained in:
2026-01-20 15:03:36 +07:00
parent 2122d580de
commit 598ac5e587
3 changed files with 27 additions and 25 deletions

View File

@@ -34,9 +34,10 @@ export default class PlaceRoute extends Route {
title: poi.tags.name || poi.tags['name:en'] || 'Untitled Place',
lat: poi.lat || poi.center?.lat,
lon: poi.lon || poi.center?.lon,
tags: poi.tags, // raw tags
url: poi.tags.website,
osmId: String(poi.id),
osmTags: poi.tags, // raw tags
osmType: poi.type, // "node" or "way"
description: poi.tags.description, // ensure description maps
// No ID/Geohash/CreatedAt means it's not saved
};