mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-22 06:41:46 +00:00
Explore places on the map, planner route fixes, and instance-wide Mapbox (#1147)
* feat(maps): add an OSM POI search endpoint (category within a viewport) New /api/maps/pois queries OpenStreetMap via Overpass for places of a category (restaurants, cafes, hotels, sights, …) inside a bounding box. OSM-only by design — it never calls Google, even when a Google key is configured. * feat(map): explore nearby places on the trip map (OSM category pill) A floating, icon-only pill over the planner map lets you toggle a POI category and see those OpenStreetMap places in the current view; clicking a marker opens the add-place form pre-filled (name, address, website, phone). Single-select with a 'search this area' action after the map moves. Renders on both the Leaflet and Mapbox maps, and can be turned off in settings (discussion #841). * fix(planner): anchor timed places when optimising and route transports by location - The day optimiser no longer reshuffles places that have a set time — they stay anchored to their time, like locked places. - The route now uses a transport's departure/arrival location as a waypoint when it has one (e.g. a flight's airport), instead of breaking the route at every booking; transports without a location are ignored for routing but still show their leg's distance/duration under the booking. * feat(admin): instance-wide Mapbox defaults in default user settings Admins can set a shared Mapbox token (plus style, 3D and quality) as instance defaults, so the whole instance can use Mapbox without each user pasting their own key. Users without their own value inherit it via the existing admin-defaults merge; the shared token is stored encrypted (discussion #920).
This commit is contained in:
@@ -381,5 +381,15 @@ const admin: TranslationStrings = {
|
||||
'Eltávolítja a felhasználó összes passkey-jét (pl. elveszett eszköz esetén). A jelszavukkal továbbra is be tudnak jelentkezni.',
|
||||
'admin.passkey.resetConfirm': 'Eltávolítod {name} összes passkey-jét?',
|
||||
'admin.passkey.resetDone': '{count} passkey eltávolítva',
|
||||
'admin.defaultSettings.mapProvider': 'Térképmotor',
|
||||
'admin.defaultSettings.mapProviderHint': 'Az alapértelmezett térkép mindenkinek ezen a példányon. Minden felhasználó felülírhatja a saját beállításaiban.',
|
||||
'admin.defaultSettings.providerLeaflet': 'Alapértelmezett (ingyenes)',
|
||||
'admin.defaultSettings.providerMapbox': 'Mapbox (3D)',
|
||||
'admin.defaultSettings.mapboxToken': 'Megosztott Mapbox-token',
|
||||
'admin.defaultSettings.mapboxTokenHint': 'Minden olyan felhasználóhoz használatos, aki nem adta meg a saját tokenjét — így az egész példány eléri a Mapboxot anélkül, hogy egyenként kellene megosztani a kulcsot. Titkosítva tárolódik.',
|
||||
'admin.defaultSettings.mapboxStyle': 'Térképstílus',
|
||||
'admin.defaultSettings.mapboxStylePlaceholder': 'Válassz stílust…',
|
||||
'admin.defaultSettings.mapbox3d': '3D épületek & domborzat',
|
||||
'admin.defaultSettings.mapboxQuality': 'Kiváló minőségű mód',
|
||||
};
|
||||
export default admin;
|
||||
|
||||
@@ -4,5 +4,14 @@ const map: TranslationStrings = {
|
||||
'map.connections': 'Kapcsolatok',
|
||||
'map.showConnections': 'Foglalási útvonalak megjelenítése',
|
||||
'map.hideConnections': 'Foglalási útvonalak elrejtése',
|
||||
'poi.searchThisArea': 'Keresés ezen a területen',
|
||||
'poi.cat.restaurants': 'Éttermek',
|
||||
'poi.cat.cafes': 'Kávézók',
|
||||
'poi.cat.bars': 'Bárok és éjszakai élet',
|
||||
'poi.cat.hotels': 'Szállás',
|
||||
'poi.cat.sights': 'Látnivalók',
|
||||
'poi.cat.museums': 'Múzeumok és kultúra',
|
||||
'poi.cat.nature': 'Természet és parkok',
|
||||
'poi.cat.activities': 'Programok',
|
||||
};
|
||||
export default map;
|
||||
|
||||
@@ -326,6 +326,8 @@ const settings: TranslationStrings = {
|
||||
'settings.passkey.deviceBound': 'Ez az eszköz',
|
||||
'settings.passkey.lastUsed': 'Utoljára használva',
|
||||
'settings.passkey.neverUsed': 'Még nem használt',
|
||||
'settings.mapPoiPill': 'Helyek felfedezése a térképen',
|
||||
'settings.mapPoiPillHint': 'Megjelenít egy kategóriasávot az utazási térképen, hogy az OpenStreetMap segítségével közeli éttermeket, szállásokat és továbbiakat találj.',
|
||||
};
|
||||
|
||||
export default settings;
|
||||
|
||||
Reference in New Issue
Block a user