mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-21 06:11:45 +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:
@@ -377,5 +377,15 @@ const admin: TranslationStrings = {
|
||||
'Odebere všechny přístupové klíče tohoto uživatele (např. při ztrátě zařízení). Stále se může přihlásit svým heslem.',
|
||||
'admin.passkey.resetConfirm': 'Odebrat všechny přístupové klíče uživatele {name}?',
|
||||
'admin.passkey.resetDone': 'Odebráno {count} přístupových klíčů',
|
||||
'admin.defaultSettings.mapProvider': 'Mapový engine',
|
||||
'admin.defaultSettings.mapProviderHint': 'Výchozí mapa pro všechny uživatele na této instanci. Každý uživatel ji může i nadále změnit ve svém vlastním nastavení.',
|
||||
'admin.defaultSettings.providerLeaflet': 'Standardní (zdarma)',
|
||||
'admin.defaultSettings.providerMapbox': 'Mapbox (3D)',
|
||||
'admin.defaultSettings.mapboxToken': 'Sdílený token Mapbox',
|
||||
'admin.defaultSettings.mapboxTokenHint': 'Použije se pro každého uživatele, který nezadal vlastní token — takže celá instance získá Mapbox, aniž byste klíč sdíleli s každým zvlášť. Ukládá se šifrovaně.',
|
||||
'admin.defaultSettings.mapboxStyle': 'Styl mapy',
|
||||
'admin.defaultSettings.mapboxStylePlaceholder': 'Vyberte styl…',
|
||||
'admin.defaultSettings.mapbox3d': '3D budovy & terén',
|
||||
'admin.defaultSettings.mapboxQuality': 'Režim vysoké kvality',
|
||||
};
|
||||
export default admin;
|
||||
|
||||
@@ -4,5 +4,14 @@ const map: TranslationStrings = {
|
||||
'map.connections': 'Spojení',
|
||||
'map.showConnections': 'Zobrazit trasy rezervací',
|
||||
'map.hideConnections': 'Skrýt trasy rezervací',
|
||||
'poi.searchThisArea': 'Hledat v této oblasti',
|
||||
'poi.cat.restaurants': 'Restaurace',
|
||||
'poi.cat.cafes': 'Kavárny',
|
||||
'poi.cat.bars': 'Bary a noční život',
|
||||
'poi.cat.hotels': 'Ubytování',
|
||||
'poi.cat.sights': 'Památky',
|
||||
'poi.cat.museums': 'Muzea a kultura',
|
||||
'poi.cat.nature': 'Příroda a parky',
|
||||
'poi.cat.activities': 'Aktivity',
|
||||
};
|
||||
export default map;
|
||||
|
||||
@@ -324,6 +324,8 @@ const settings: TranslationStrings = {
|
||||
'settings.passkey.deviceBound': 'Toto zařízení',
|
||||
'settings.passkey.lastUsed': 'Naposledy použito',
|
||||
'settings.passkey.neverUsed': 'Nikdy nepoužito',
|
||||
'settings.mapPoiPill': 'Objevovat místa na mapě',
|
||||
'settings.mapPoiPillHint': 'Zobrazit na mapě výletu kategorie pro hledání restaurací, hotelů a dalšího v okolí z OpenStreetMap.',
|
||||
};
|
||||
|
||||
export default settings;
|
||||
|
||||
Reference in New Issue
Block a user