The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
feat(tours): open a tour's route in Google Maps, Apple Maps or CoMaps (#2812)
Mauricecd53d0a89523
diff --git a/client/src/components/Tours/TourDetailDialog.test.tsx b/client/src/components/Tours/TourDetailDialog.test.tsxindex 1af77e427..487ac9e5e 100644--- a/client/src/components/Tours/TourDetailDialog.test.tsx+++ b/client/src/components/Tours/TourDetailDialog.test.tsx@@ -411,4 +411,23 @@ describe('TourDetailDialog', () => {expect(screen.queryByTestId('paddle-check-summary')).not.toBeInTheDocument()expect(screen.queryByRole('button', { name: /Paddling has risks/ })).not.toBeInTheDocument()})++ it("#2812: offers the whole route in the map apps that follow one, in the tour's own mode", () => {+ const open = vi.spyOn(window, 'open').mockImplementation(() => null)+ render(<TourDetailDialog {...defaultProps} tour={{ ...tour, tour_type: 'bike' }} />)++ fireEvent.click(screen.getByRole('button', { name: 'Open the route in a map app' }))+ const menu = screen.getByRole('menu')+ // Only the apps that take a route: Waze and geo: lead to the start, which Navigation already does.+ expect(Array.from(menu.querySelectorAll('[role="menuitem"]')).map(item => item.textContent)).toEqual(['Google Maps', 'CoMaps'])++ fireEvent.click(screen.getByRole('menuitem', { name: 'CoMaps' }))+ // Three points along the line go as pins; the start carries the tour's name.+ expect(open).toHaveBeenCalledWith(expect.stringContaining('https://comaps.at/map?v=1&ll=48,11&n=Ridge%20walk'), '_blank', 'noopener,noreferrer')+ })++ it('#2812: a paddle tour is not handed to a map app, which would route it by road', () => {+ render(<TourDetailDialog {...defaultProps} tour={{ ...tour, tour_type: 'kayak', paddle_check: paddleBench() }} />)+ expect(screen.queryByRole('button', { name: 'Open the route in a map app' })).not.toBeInTheDocument()+ })})diff --git a/client/src/components/Tours/TourDetailDialog.tsx b/client/src/components/Tours/TourDetailDialog.tsxindex 16480cba4..1894f1213 100644--- a/client/src/components/Tours/TourDetailDialog.tsx+++ b/client/src/components/Tours/TourDetailDialog.tsx@@ -15,6 +15,7 @@ import {FileImage,FileText,Loader2,+ MapPinned,Minus,Navigation,Pencil,@@ -73,6 +74,7 @@ import {tourWebsitePresentation,type TourPlannedTimes,} from './tourPresentation';+import { tourRouteTargets } from './tourRouteApps';import { tourShareFactsOf } from './tourShareText';import { useTourDayAssignment } from './useTourDayAssignment';import { useTourPermissions, type TourPermissionProps } from './useTourPermissions';@@ -540,6 +542,8 @@ export default function TourDetailDialog({const [colorOpen, setColorOpen] = useState(false);const [navigationOpen, setNavigationOpen] = useState(false);const navigationAnchorRef = useRef<HTMLSpanElement>(null);+ const [routeAppsOpen, setRouteAppsOpen] = useState(false);+ const routeAppsAnchorRef = useRef<HTMLSpanElement>(null);useDesktopEscape(desktopNonModal, onClose, desktopFocusReturnTarget);const heightsHidden = heightsUnknown(tour);@@ -555,6 +559,11 @@ export default function TourDetailDialog({const navigationTargets = getNavigationTargets(place);const navigationLabel =navigationTargets.length === 1 ? navigationTargetLabel(navigationTargets[0], t) : t('inspector.navigation');+ // #2812: the whole route, not only the way to its start, in the apps that follow one.+ const routeTargets = useMemo(+ () => (analysis ? tourRouteTargets(tour.tour_type, analysis.routeCoordinates, place.name) : []),+ [analysis, tour.tour_type, place.name]+ );const description = tour.description !== undefined ? tour.description : place.description;const website = tourWebsitePresentation(tour.website !== undefined ? tour.website : place.website);const times = tourPlannedTimes(tour);@@ -663,6 +672,31 @@ export default function TourDetailDialog({)}</>)}+ {routeTargets.length > 0 && (+ <>+ <Tooltip label={t('tours.detail.openRoute')}>+ <span ref={routeAppsAnchorRef} className="inline-flex">+ <DialogButton+ onClick={() => setRouteAppsOpen((open) => !open)}+ aria-label={t('tours.detail.openRoute')}+ aria-haspopup="menu"+ aria-expanded={routeAppsOpen}+ data-testid="tour-route-apps"+ icon={<MapPinned size={14} strokeWidth={2} />}+ >+ <span className="max-sm:hidden">{t('tours.detail.mapsShort')}</span>+ </DialogButton>+ </span>+ </Tooltip>+ {routeAppsOpen && (+ <NavigationMenu+ targets={routeTargets}+ anchor={routeAppsAnchorRef.current}+ onClose={() => setRouteAppsOpen(false)}+ />+ )}+ </>+ )}{website && (<Tooltip label={website.domain}><span className="inline-flex">diff --git a/client/src/components/Tours/tourRouteApps.test.ts b/client/src/components/Tours/tourRouteApps.test.tsnew file mode 100644index 000000000..f05ae04a6--- /dev/null+++ b/client/src/components/Tours/tourRouteApps.test.ts@@ -0,0 +1,44 @@+// FE-TOUR-ROUTEAPPS-001 to FE-TOUR-ROUTEAPPS-004+import { describe, expect, it } from 'vitest';++import { TOUR_APP_MAX_STOPS, tourAppProfile, tourRouteStops, tourRouteTargets } from './tourRouteApps';++/** A straight line east along the equator, one point every 0.01 degrees. */+const line = (points: number): [number, number][] => Array.from({ length: points }, (_, i) => [0, i / 100]);++describe('tourRouteApps (#2812)', () => {+ it('FE-TOUR-ROUTEAPPS-001: a short line goes whole, the start named by the tour', () => {+ expect(tourRouteStops(line(3), 'Ridge walk')).toEqual([+ { lat: 0, lng: 0, name: 'Ridge walk' },+ { lat: 0, lng: 0.01 },+ { lat: 0, lng: 0.02 },+ ]);+ });++ it('FE-TOUR-ROUTEAPPS-002: a long line is thinned to the cap, evenly along it, keeping both ends', () => {+ const stops = tourRouteStops(line(101), 'Long ride');+ expect(stops).toHaveLength(TOUR_APP_MAX_STOPS);+ expect(stops[0]).toEqual({ lat: 0, lng: 0, name: 'Long ride' });+ expect(stops[stops.length - 1]).toEqual({ lat: 0, lng: 1 });+ // Nine equal steps over a hundred points: every eleventh point, give or take one.+ const steps = stops.slice(1).map((stop, i) => Math.round((stop.lng - stops[i].lng) * 100));+ expect(steps.every((step) => step === 11 || step === 12)).toBe(true);+ });++ it('FE-TOUR-ROUTEAPPS-003: walks and hikes are walked, bike tours ridden, and the rest offered to no app', () => {+ expect(tourAppProfile('hike')).toBe('walking');+ expect(tourAppProfile('walk')).toBe('walking');+ expect(tourAppProfile('bike')).toBe('cycling');+ expect(tourAppProfile('kayak')).toBeNull();+ expect(tourAppProfile('ski')).toBeNull();+ expect(tourAppProfile('horse')).toBeNull();+ expect(tourRouteTargets('kayak', line(5), 'Lake')).toEqual([]);+ });++ it('FE-TOUR-ROUTEAPPS-004: only the apps that take the whole route, with the mode the tour is routed in', () => {+ const targets = tourRouteTargets('bike', line(2), 'Ride');+ expect(targets.map((target) => target.id)).toEqual(['google', 'comaps']);+ expect(targets.find((target) => target.id === 'comaps')?.url).toContain('type=bicycle');+ expect(targets.find((target) => target.id === 'google')?.url).toBe('https://www.google.com/maps/dir/0,0/0,0.01');+ });+});diff --git a/client/src/components/Tours/tourRouteApps.ts b/client/src/components/Tours/tourRouteApps.tsnew file mode 100644index 000000000..0c94b48d6--- /dev/null+++ b/client/src/components/Tours/tourRouteApps.ts@@ -0,0 +1,81 @@+import type { TourTypeKey } from '@trek/shared';++import { haversineKm } from '../../utils/geo';+import type { NamedWaypoint, RouteProfileKey } from '../Map/RouteCalculator';+import { dayRouteTargets, type DayRouteTarget } from '../Planner/dayRouteApps';++/**+ * The most stops a tour hands to a map app (#2812). Google Maps opens a+ * directions link with at most ten stops, a start, a destination and eight in+ * between, and drops the rest without a word. The other apps get the same+ * stops, so every app is handed the same route.+ */+export const TOUR_APP_MAX_STOPS = 10;++/**+ * How a map app follows each kind of tour. A ski, paddle or horse tour has no+ * mode in any of them: handed over, it would be routed by road, so it is not+ * offered and the GPX file stays the way to take it along.+ */+const APP_PROFILE: Partial<Record<TourTypeKey, RouteProfileKey>> = {+ hike: 'walking',+ walk: 'walking',+ food: 'walking',+ run: 'walking',+ bike: 'cycling',+};++/** The mode a map app follows this tour in, or null where no map app can. */+export function tourAppProfile(type: TourTypeKey): RouteProfileKey | null {+ return APP_PROFILE[type] ?? null;+}++const at = ([lat, lng]: readonly [number, number]) => ({ lat, lng });++/**+ * Stops along a tour's line, spread evenly over its length, so the app routes+ * the way the tour goes rather than the shortest way between its ends. The+ * line's own first and last points are always among them, which keeps a round+ * tour round. The start carries the tour's name, the one place an app shows it.+ */+export function tourRouteStops(+ line: ReadonlyArray<readonly [number, number]>,+ name: string,+ max = TOUR_APP_MAX_STOPS+): NamedWaypoint[] {+ return spreadIndices(line, max).map((i, n) => ({ ...at(line[i]), ...(n === 0 ? { name } : {}) }));+}++/** The indices of at most `max` points of the line, its ends and the points nearest to even steps along it. */+function spreadIndices(line: ReadonlyArray<readonly [number, number]>, max: number): number[] {+ if (line.length <= max) return line.map((_, i) => i);+ const along = [0];+ for (let i = 1; i < line.length; i++) along.push(along[i - 1] + haversineKm(at(line[i - 1]), at(line[i])));+ const total = along[along.length - 1];+ const last = line.length - 1;+ const picked = [0];+ let index = 0;+ for (let k = 1; k < max - 1; k++) {+ const target = (total * k) / (max - 1);+ while (index < last && along[index] < target) index++;+ const nearest = target - along[index - 1] < along[index] - target ? index - 1 : index;+ if (nearest > picked[picked.length - 1] && nearest < last) picked.push(nearest);+ }+ picked.push(last);+ return picked;+}++/**+ * The map apps a tour's route can be opened in, with the tour's mode. Only the+ * apps that take the whole route: one that only gets the start (Waze, a geo:+ * link) is what the tour's Navigation button already offers.+ */+export function tourRouteTargets(+ type: TourTypeKey,+ line: ReadonlyArray<readonly [number, number]>,+ name: string+): DayRouteTarget[] {+ const profile = tourAppProfile(type);+ if (!profile) return [];+ return dayRouteTargets(tourRouteStops(line, name), profile).filter((target) => !target.firstStopOnly);+}diff --git a/shared/src/i18n/ar/tours.ts b/shared/src/i18n/ar/tours.tsindex 1e3d0c72a..4a3e8171d 100644--- a/shared/src/i18n/ar/tours.ts+++ b/shared/src/i18n/ar/tours.ts@@ -103,6 +103,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'إجمالي الصعود','tours.detail.descent': 'إجمالي الهبوط','tours.detail.navigationHint': 'تفتح الملاحة نقطة بداية الدرب، ولا توفّر إرشادًا على طول مسار الجولة.',+ 'tours.detail.openRoute': 'افتح المسار في تطبيق خرائط',+ 'tours.detail.mapsShort': 'الخرائط','tours.planner.title': 'تخطيط جولة','tours.planner.newTour': 'تخطيط جولة جديدة','tours.planner.addTour': 'إضافة جولة',diff --git a/shared/src/i18n/az/tours.ts b/shared/src/i18n/az/tours.tsindex 24ff3c82c..5f5001cb8 100644--- a/shared/src/i18n/az/tours.ts+++ b/shared/src/i18n/az/tours.ts@@ -91,6 +91,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Yüksəlmə','tours.detail.descent': 'Enmə','tours.detail.navigationHint': 'Naviqasiya cığırın başlanğıcını açır; marşrut boyunca istiqamət göstərmir.',+ 'tours.detail.openRoute': 'Marşrutu xəritə tətbiqində aç',+ 'tours.detail.mapsShort': 'Xəritələr','tours.planner.title': 'Tur planlaşdır','tours.planner.newTour': 'Yeni tur planlaşdır','tours.planner.addTour': 'Tur əlavə et',diff --git a/shared/src/i18n/br/tours.ts b/shared/src/i18n/br/tours.tsindex 8b4427e2c..f4871a122 100644--- a/shared/src/i18n/br/tours.ts+++ b/shared/src/i18n/br/tours.ts@@ -95,6 +95,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Ganho de elevação','tours.detail.descent': 'Perda de elevação','tours.detail.navigationHint': 'A navegação abre o início da trilha; ela não orienta ao longo da rota.',+ 'tours.detail.openRoute': 'Digeriñ an hent en un arload kartennoù',+ 'tours.detail.mapsShort': 'Kartennoù','tours.planner.title': 'Planejar um passeio','tours.planner.newTour': 'Planejar novo passeio','tours.planner.addTour': 'Adicionar passeio',diff --git a/shared/src/i18n/ca/tours.ts b/shared/src/i18n/ca/tours.tsindex f659745a0..7409d9d7b 100644--- a/shared/src/i18n/ca/tours.ts+++ b/shared/src/i18n/ca/tours.ts@@ -95,6 +95,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Desnivell positiu','tours.detail.descent': 'Desnivell negatiu','tours.detail.navigationHint': "La navegació obre el punt d'inici del sender; no guia al llarg de la ruta.",+ 'tours.detail.openRoute': 'Obre la ruta en una app de mapes',+ 'tours.detail.mapsShort': 'Mapes','tours.planner.title': 'Planifica una excursió','tours.planner.newTour': 'Planifica una nova excursió','tours.planner.addTour': 'Afegeix una ruta',diff --git a/shared/src/i18n/cs/tours.ts b/shared/src/i18n/cs/tours.tsindex d21f930dc..66d18f7ff 100644--- a/shared/src/i18n/cs/tours.ts+++ b/shared/src/i18n/cs/tours.ts@@ -94,6 +94,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Stoupání','tours.detail.descent': 'Klesání','tours.detail.navigationHint': 'Navigace otevře výchozí bod túry; nevede po její trase.',+ 'tours.detail.openRoute': 'Otevřít trasu v mapové aplikaci',+ 'tours.detail.mapsShort': 'Mapy','tours.planner.title': 'Naplánovat výlet','tours.planner.newTour': 'Naplánovat nový výlet','tours.planner.addTour': 'Přidat túru',diff --git a/shared/src/i18n/de/tours.ts b/shared/src/i18n/de/tours.tsindex 48d1463bb..3bb42f582 100644--- a/shared/src/i18n/de/tours.ts+++ b/shared/src/i18n/de/tours.ts@@ -95,6 +95,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Aufstieg','tours.detail.descent': 'Abstieg','tours.detail.navigationHint': 'Die Navigation führt zum Startpunkt, nicht entlang der Tour.',+ 'tours.detail.openRoute': 'Route in einer Karten-App öffnen',+ 'tours.detail.mapsShort': 'Karten','tours.planner.title': 'Tour planen','tours.planner.newTour': 'Neue Tour planen','tours.planner.addTour': 'Tour hinzufügen',diff --git a/shared/src/i18n/en/tours.ts b/shared/src/i18n/en/tours.tsindex 1de0e5fbe..90243161b 100644--- a/shared/src/i18n/en/tours.ts+++ b/shared/src/i18n/en/tours.ts@@ -91,6 +91,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Ascent','tours.detail.descent': 'Descent','tours.detail.navigationHint': 'Navigation opens the trailhead; it does not navigate along the route.',+ 'tours.detail.openRoute': 'Open the route in a map app',+ 'tours.detail.mapsShort': 'Maps','tours.planner.title': 'Plan a tour','tours.planner.newTour': 'Plan new tour','tours.planner.addTour': 'Add tour',diff --git a/shared/src/i18n/es/tours.ts b/shared/src/i18n/es/tours.tsindex 173750c50..4482829e4 100644--- a/shared/src/i18n/es/tours.ts+++ b/shared/src/i18n/es/tours.ts@@ -96,6 +96,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Desnivel positivo','tours.detail.descent': 'Desnivel negativo','tours.detail.navigationHint': 'La navegación abre el punto de inicio; no guía a lo largo de la ruta.',+ 'tours.detail.openRoute': 'Abrir la ruta en una app de mapas',+ 'tours.detail.mapsShort': 'Mapas','tours.planner.title': 'Planificar una excursión','tours.planner.newTour': 'Planificar nueva excursión','tours.planner.addTour': 'Añadir ruta',diff --git a/shared/src/i18n/et/tours.ts b/shared/src/i18n/et/tours.tsindex 25c616b23..4c2049381 100644--- a/shared/src/i18n/et/tours.ts+++ b/shared/src/i18n/et/tours.ts@@ -92,6 +92,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Tõus','tours.detail.descent': 'Laskumine','tours.detail.navigationHint': 'Navigeerimine avab raja alguspunkti, mitte juhiseid mööda marsruuti.',+ 'tours.detail.openRoute': 'Ava marsruut kaardirakenduses',+ 'tours.detail.mapsShort': 'Kaardid','tours.planner.title': 'Planeeri retk','tours.planner.newTour': 'Planeeri uus retk','tours.planner.addTour': 'Lisa matk',diff --git a/shared/src/i18n/fr/tours.ts b/shared/src/i18n/fr/tours.tsindex 2eb18887f..5d9835b35 100644--- a/shared/src/i18n/fr/tours.ts+++ b/shared/src/i18n/fr/tours.ts@@ -97,6 +97,8 @@ const tours: TranslationStrings = {'tours.detail.descent': 'Dénivelé négatif','tours.detail.navigationHint':"La navigation ouvre le point de départ du sentier ; elle ne vous guide pas le long de l'itinéraire.",+ 'tours.detail.openRoute': "Ouvrir l'itinéraire dans une app de cartes",+ 'tours.detail.mapsShort': 'Cartes','tours.planner.title': 'Planifier une sortie','tours.planner.newTour': 'Planifier une nouvelle sortie','tours.planner.addTour': 'Ajouter une sortie',diff --git a/shared/src/i18n/gr/tours.ts b/shared/src/i18n/gr/tours.tsindex 63012ba21..d80ed91e8 100644--- a/shared/src/i18n/gr/tours.ts+++ b/shared/src/i18n/gr/tours.ts@@ -96,6 +96,8 @@ const tours: TranslationStrings = {'tours.detail.descent': 'Υψομετρική κάθοδος','tours.detail.navigationHint':'Η πλοήγηση ανοίγει την αφετηρία του μονοπατιού· δεν σας καθοδηγεί κατά μήκος της διαδρομής.',+ 'tours.detail.openRoute': 'Άνοιγμα της διαδρομής σε εφαρμογή χαρτών',+ 'tours.detail.mapsShort': 'Χάρτες','tours.planner.title': 'Σχεδιασμός εκδρομής','tours.planner.newTour': 'Σχεδιασμός νέας εκδρομής','tours.planner.addTour': 'Προσθήκη διαδρομής',diff --git a/shared/src/i18n/he/tours.ts b/shared/src/i18n/he/tours.tsindex caa49a676..378b9ddf1 100644--- a/shared/src/i18n/he/tours.ts+++ b/shared/src/i18n/he/tours.ts@@ -92,6 +92,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'עלייה מצטברת','tours.detail.descent': 'ירידה מצטברת','tours.detail.navigationHint': 'הניווט מוביל לנקודת ההתחלה של המסלול, ולא מנווט לאורכו.',+ 'tours.detail.openRoute': 'פתיחת המסלול באפליקציית מפות',+ 'tours.detail.mapsShort': 'מפות','tours.planner.title': 'תכנון מסלול','tours.planner.newTour': 'תכנון מסלול חדש','tours.planner.addTour': 'הוספת מסלול',diff --git a/shared/src/i18n/hu/tours.ts b/shared/src/i18n/hu/tours.tsindex c62b75ed9..2a29a5d04 100644--- a/shared/src/i18n/hu/tours.ts+++ b/shared/src/i18n/hu/tours.ts@@ -93,6 +93,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Szintemelkedés','tours.detail.descent': 'Szintcsökkenés','tours.detail.navigationHint': 'A navigáció a túra kiindulópontját nyitja meg; nem vezet végig az útvonalon.',+ 'tours.detail.openRoute': 'Útvonal megnyitása térképalkalmazásban',+ 'tours.detail.mapsShort': 'Térkép','tours.planner.title': 'Túra tervezése','tours.planner.newTour': 'Új túra tervezése','tours.planner.addTour': 'Túra hozzáadása',diff --git a/shared/src/i18n/id/tours.ts b/shared/src/i18n/id/tours.tsindex 225f1b24b..418480674 100644--- a/shared/src/i18n/id/tours.ts+++ b/shared/src/i18n/id/tours.ts@@ -90,6 +90,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Total kenaikan elevasi','tours.detail.descent': 'Total penurunan elevasi','tours.detail.navigationHint': 'Navigasi membuka titik awal jalur, bukan memberikan panduan sepanjang rute.',+ 'tours.detail.openRoute': 'Buka rute di aplikasi peta',+ 'tours.detail.mapsShort': 'Peta','tours.planner.title': 'Rencanakan tur','tours.planner.newTour': 'Rencanakan tur baru','tours.planner.addTour': 'Tambah tur',diff --git a/shared/src/i18n/it/tours.ts b/shared/src/i18n/it/tours.tsindex 5b33da3c6..be70552e8 100644--- a/shared/src/i18n/it/tours.ts+++ b/shared/src/i18n/it/tours.ts@@ -94,6 +94,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Dislivello positivo','tours.detail.descent': 'Dislivello negativo','tours.detail.navigationHint': 'La navigazione apre il punto di partenza del sentiero; non guida lungo il percorso.',+ 'tours.detail.openRoute': "Apri il percorso in un'app di mappe",+ 'tours.detail.mapsShort': 'Mappe','tours.planner.title': "Pianifica un'escursione",'tours.planner.newTour': 'Pianifica nuova escursione','tours.planner.addTour': 'Aggiungi giro',diff --git a/shared/src/i18n/ja/tours.ts b/shared/src/i18n/ja/tours.tsindex 94461bd4f..1fa89680c 100644--- a/shared/src/i18n/ja/tours.ts+++ b/shared/src/i18n/ja/tours.ts@@ -89,6 +89,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': '累積上昇量','tours.detail.descent': '累積下降量','tours.detail.navigationHint': 'ナビには登山口が表示されます。ルートに沿った案内は行いません。',+ 'tours.detail.openRoute': 'ルートを地図アプリで開く',+ 'tours.detail.mapsShort': '地図','tours.planner.title': 'ツアーを計画','tours.planner.newTour': '新しいツアーを計画','tours.planner.addTour': 'ツアーを追加',diff --git a/shared/src/i18n/ko/tours.ts b/shared/src/i18n/ko/tours.tsindex e2a661057..43687104b 100644--- a/shared/src/i18n/ko/tours.ts+++ b/shared/src/i18n/ko/tours.ts@@ -85,6 +85,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': '누적 상승 고도','tours.detail.descent': '누적 하강 고도','tours.detail.navigationHint': '길찾기는 탐방로 입구를 목적지로 엽니다. 투어 경로를 따라 안내하지는 않습니다.',+ 'tours.detail.openRoute': '지도 앱에서 경로 열기',+ 'tours.detail.mapsShort': '지도','tours.planner.title': '투어 계획','tours.planner.newTour': '새 투어 계획','tours.planner.addTour': '투어 추가',diff --git a/shared/src/i18n/nl/tours.ts b/shared/src/i18n/nl/tours.tsindex 110130d04..d22cbf16b 100644--- a/shared/src/i18n/nl/tours.ts+++ b/shared/src/i18n/nl/tours.ts@@ -95,6 +95,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Hoogtemeters omhoog','tours.detail.descent': 'Hoogtemeters omlaag','tours.detail.navigationHint': 'De navigatie opent het startpunt van het pad; ze begeleidt je niet langs de route.',+ 'tours.detail.openRoute': 'Route openen in een kaarten-app',+ 'tours.detail.mapsShort': 'Kaarten','tours.planner.title': 'Een tocht plannen','tours.planner.newTour': 'Nieuwe tocht plannen','tours.planner.addTour': 'Tocht toevoegen',diff --git a/shared/src/i18n/pl/tours.ts b/shared/src/i18n/pl/tours.tsindex a879fc94f..3d6ce4115 100644--- a/shared/src/i18n/pl/tours.ts+++ b/shared/src/i18n/pl/tours.ts@@ -102,6 +102,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Suma podejść','tours.detail.descent': 'Suma zejść','tours.detail.navigationHint': 'Nawigacja otwiera punkt początkowy szlaku; nie prowadzi wzdłuż trasy.',+ 'tours.detail.openRoute': 'Otwórz trasę w aplikacji map',+ 'tours.detail.mapsShort': 'Mapy','tours.planner.title': 'Zaplanuj wycieczkę','tours.planner.newTour': 'Zaplanuj nową wycieczkę','tours.planner.addTour': 'Dodaj trasę',diff --git a/shared/src/i18n/ru/tours.ts b/shared/src/i18n/ru/tours.tsindex 26025ac09..926557bd2 100644--- a/shared/src/i18n/ru/tours.ts+++ b/shared/src/i18n/ru/tours.ts@@ -102,6 +102,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Набор высоты','tours.detail.descent': 'Сброс высоты','tours.detail.navigationHint': 'Навигация открывает начальную точку тропы, но не ведёт по маршруту.',+ 'tours.detail.openRoute': 'Открыть маршрут в картографическом приложении',+ 'tours.detail.mapsShort': 'Карты','tours.planner.title': 'Спланировать тур','tours.planner.newTour': 'Спланировать новый тур','tours.planner.addTour': 'Добавить маршрут',diff --git a/shared/src/i18n/sk/tours.ts b/shared/src/i18n/sk/tours.tsindex 53c9863a8..6fbd13b7a 100644--- a/shared/src/i18n/sk/tours.ts+++ b/shared/src/i18n/sk/tours.ts@@ -95,6 +95,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Stúpanie','tours.detail.descent': 'Klesanie','tours.detail.navigationHint': 'Navigácia otvorí začiatok túry; nevedie po trase.',+ 'tours.detail.openRoute': 'Otvoriť trasu v mapovej aplikácii',+ 'tours.detail.mapsShort': 'Mapy','tours.planner.title': 'Naplánovať túru','tours.planner.newTour': 'Naplánovať novú túru','tours.planner.addTour': 'Pridať túru',diff --git a/shared/src/i18n/sv/tours.ts b/shared/src/i18n/sv/tours.tsindex d62a139ca..8eb5305a2 100644--- a/shared/src/i18n/sv/tours.ts+++ b/shared/src/i18n/sv/tours.ts@@ -92,6 +92,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Höjdmeter uppför','tours.detail.descent': 'Höjdmeter nedför','tours.detail.navigationHint': 'Navigeringen öppnar ledens startpunkt; den vägleder inte längs rutten.',+ 'tours.detail.openRoute': 'Öppna rutten i en kartapp',+ 'tours.detail.mapsShort': 'Kartor','tours.planner.title': 'Planera en tur','tours.planner.newTour': 'Planera ny tur','tours.planner.addTour': 'Lägg till tur',diff --git a/shared/src/i18n/th/tours.ts b/shared/src/i18n/th/tours.tsindex 56cdc6197..c4ec0e298 100644--- a/shared/src/i18n/th/tours.ts+++ b/shared/src/i18n/th/tours.ts@@ -85,6 +85,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'ความสูงสะสมขาขึ้น','tours.detail.descent': 'ความสูงสะสมขาลง','tours.detail.navigationHint': 'การนำทางจะเปิดจุดเริ่มต้นทางเดิน ไม่ได้นำทางตามเส้นทางทัวร์',+ 'tours.detail.openRoute': 'เปิดเส้นทางในแอปแผนที่',+ 'tours.detail.mapsShort': 'แผนที่','tours.planner.title': 'วางแผนทัวร์','tours.planner.newTour': 'วางแผนทัวร์ใหม่','tours.planner.addTour': 'เพิ่มทริป',diff --git a/shared/src/i18n/tr/tours.ts b/shared/src/i18n/tr/tours.tsindex 84a00d8aa..eabf95818 100644--- a/shared/src/i18n/tr/tours.ts+++ b/shared/src/i18n/tr/tours.ts@@ -91,6 +91,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Toplam yükselme','tours.detail.descent': 'Toplam alçalma','tours.detail.navigationHint': 'Navigasyon yürüyüşün başlangıç noktasını açar; rota boyunca yol tarifi vermez.',+ 'tours.detail.openRoute': 'Rotayı bir harita uygulamasında aç',+ 'tours.detail.mapsShort': 'Haritalar','tours.planner.title': 'Tur planla','tours.planner.newTour': 'Yeni tur planla','tours.planner.addTour': 'Tur ekle',diff --git a/shared/src/i18n/uk/tours.ts b/shared/src/i18n/uk/tours.tsindex 41c00006b..3a36760dc 100644--- a/shared/src/i18n/uk/tours.ts+++ b/shared/src/i18n/uk/tours.ts@@ -101,6 +101,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Набір висоти','tours.detail.descent': 'Втрата висоти','tours.detail.navigationHint': 'Навігація відкриває початкову точку стежки, але не веде вздовж маршруту.',+ 'tours.detail.openRoute': 'Відкрити маршрут у застосунку карт',+ 'tours.detail.mapsShort': 'Карти','tours.planner.title': 'Спланувати тур','tours.planner.newTour': 'Спланувати новий тур','tours.planner.addTour': 'Додати маршрут',diff --git a/shared/src/i18n/vi/tours.ts b/shared/src/i18n/vi/tours.tsindex 933db6b02..273fef006 100644--- a/shared/src/i18n/vi/tours.ts+++ b/shared/src/i18n/vi/tours.ts@@ -92,6 +92,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': 'Tổng độ cao leo lên','tours.detail.descent': 'Tổng độ cao đi xuống','tours.detail.navigationHint': 'Chỉ đường sẽ mở điểm bắt đầu đường mòn, không hướng dẫn đi dọc theo tuyến đường.',+ 'tours.detail.openRoute': 'Mở lộ trình trong ứng dụng bản đồ',+ 'tours.detail.mapsShort': 'Bản đồ','tours.planner.title': 'Lên kế hoạch tham quan','tours.planner.newTour': 'Lên kế hoạch tham quan mới','tours.planner.addTour': 'Thêm chuyến đi',diff --git a/shared/src/i18n/zh-TW/tours.ts b/shared/src/i18n/zh-TW/tours.tsindex 7e0412642..44f0806cf 100644--- a/shared/src/i18n/zh-TW/tours.ts+++ b/shared/src/i18n/zh-TW/tours.ts@@ -80,6 +80,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': '累計爬升','tours.detail.descent': '累計下降','tours.detail.navigationHint': '導航會開啟登山口或步道入口,不會沿著遊程路線提供導航。',+ 'tours.detail.openRoute': '在地圖應用程式中開啟路線',+ 'tours.detail.mapsShort': '地圖','tours.planner.title': '規劃遊程','tours.planner.newTour': '規劃新遊程','tours.planner.addTour': '新增行程',diff --git a/shared/src/i18n/zh/tours.ts b/shared/src/i18n/zh/tours.tsindex a418fd7a1..471cd3c93 100644--- a/shared/src/i18n/zh/tours.ts+++ b/shared/src/i18n/zh/tours.ts@@ -81,6 +81,8 @@ const tours: TranslationStrings = {'tours.detail.ascent': '累计爬升','tours.detail.descent': '累计下降','tours.detail.navigationHint': '导航打开的是步道起点,不会沿游览路线提供导航。',+ 'tours.detail.openRoute': '在地图应用中打开路线',+ 'tours.detail.mapsShort': '地图','tours.planner.title': '规划游览路线','tours.planner.newTour': '规划新游览路线','tours.planner.addTour': '添加行程',