mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
feat(tours): plan a run at your own pace
RUN-01. Run joins the tour types in the planner, with Running as its first profile, chosen on purpose like a bike tour's. A run is routed on foot for runnable, mostly paved ways: tracks and ferries only where there is no other way (use_tracks 0, use_ferry 0, measured against the public Valhalla), no hiking limit and no via ferrata. The runner types a pace in min/km; the running time is the distance at that pace and nothing else, shown under the field as badges (8 km x 6:00 /km = 48 min). TREK suggests no pace: without one the time stays unknown and Save waits, text that is no pace or a pace outside 2:00 to 20:00 is marked. The info dot, the overview and the head say climbs, descents and difficulty are not in the time, and the time reads as planned everywhere, so it never passes for a recorded one; the heights are shown as for any tour on land. Type, profile, pace and route come back on opening, survive a draft reload, an undo of the type, a copy and a take-over; switching to another type drops profile and pace. Day assignment, the 3D terrain view (with topo and satellite, no ferratas) and a routing failure keeping the last route work as for every tour. A GPX file can be imported as a run with its profile and no pace, and planned over as a run. Runs export to GPX as running and get their own places along the way (water, toilets, parks, viewpoints). The server keeps tours.run_profile (CHECK list, already holding trail for RUN-02, since SQLite cannot widen a CHECK in place) and tours.run_pace_seconds_per_km (120 to 1200), switches the run type on, refuses a run without a profile and run fields on any other type, and list_tours names both with what the planned time does not include.
This commit is contained in:
@@ -414,6 +414,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.winter_hike': 'مشي شتوي',
|
||||
'tours.winter.activity.snowshoe': 'مشي بأحذية الثلج',
|
||||
'tours.winter.labelOnly': 'وضعها المسافرون. يُخطَّط المسار والوقت كما في أي نزهة، دون فحص لظروف الشتاء.',
|
||||
'tours.planner.tourTypeHint.run': 'سيرًا على الأقدام بإيقاعك الخاص، على طرق مناسبة للجري',
|
||||
'tours.planner.namePlaceholder.run': 'جري بلا عنوان',
|
||||
'tours.planner.unreachable.run':
|
||||
'لا يصل أي طريق صالح للجري إلى النقطة {point}: أقرب طريق يعرفه الموجّه يبعد {distance}. انقل النقطة إلى طريق، أو ارسم المقطع إليها يدويًا.',
|
||||
'tours.run.profile': 'الملف',
|
||||
'tours.run.profile.running': 'جري',
|
||||
'tours.run.profileHint.running':
|
||||
'يفضّل طرقًا مناسبة للجري، معبّدة قدر الإمكان، في المدينة وفي الحدائق وعلى ضفاف الأنهار.',
|
||||
'tours.run.pace': 'الوتيرة المخططة',
|
||||
'tours.run.paceInfoLabel': 'كيف يُحسب وقت الجري',
|
||||
'tours.run.paceInfo':
|
||||
'وتيرتك الخاصة لكل كيلومتر. وقت الجري هو المسافة × الوتيرة؛ ولا تُحتسب الصعودات والنزولات ولا الصعوبة التقنية.',
|
||||
'tours.run.paceInvalid': 'أدخل الوتيرة بصيغة دقيقة:ثانية لكل كم، من {fastest} إلى {slowest}.',
|
||||
'tours.run.paceNeeded': 'أدخل وتيرتك لتخطيط وقت الجري وحفظ هذا الجري.',
|
||||
'tours.run.timeEstimated': 'وقت الجري (مخطط)',
|
||||
'tours.run.timeEstimatedShort': 'وقت الجري',
|
||||
'tours.run.timeEstimatedInfoLabel': 'كيف يُخطط وقت الجري',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'المسافة × وتيرتك ولا شيء غير ذلك: لا تُحتسب الصعودات والنزولات ولا الصعوبة. إنه تخطيط، وليس وقتًا مسجّلًا.',
|
||||
'tours.run.timeSum': '{distance} بوتيرة {pace} دقيقة/كم تساوي {time}',
|
||||
'tours.bike.profile': 'الملف',
|
||||
'tours.bike.profile.touring': 'تجوال',
|
||||
'tours.bike.profile.road': 'طريق',
|
||||
|
||||
@@ -404,6 +404,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Qar ayaqqabısı ilə yürüş',
|
||||
'tours.winter.labelOnly':
|
||||
'Səyahətçilər tərəfindən qeyd edilib. Marşrut və vaxt istənilən yürüşdəki kimi planlaşdırılır, qış şəraiti üçün yoxlanılmır.',
|
||||
'tours.planner.tourTypeHint.run': 'Piyada öz tempinizlə, qaçış üçün rahat yollarla',
|
||||
'tours.planner.namePlaceholder.run': 'Adsız qaçış',
|
||||
'tours.planner.unreachable.run':
|
||||
'{point} nöqtəsinə qaçış üçün yararlı heç bir yol çatmır: marşrutlaşdırıcının bildiyi ən yaxın yol {distance} uzaqdadır. Nöqtəni yola köçürün və ya ora gedən hissəni əl ilə çəkin.',
|
||||
'tours.run.profile': 'Profil',
|
||||
'tours.run.profile.running': 'Qaçış',
|
||||
'tours.run.profileHint.running':
|
||||
'Şəhərdə, parklarda və çay boyunca qaçış üçün rahat, mümkün qədər örtüklü yollara üstünlük verir.',
|
||||
'tours.run.pace': 'Planlaşdırılan temp',
|
||||
'tours.run.paceInfoLabel': 'Qaçış vaxtı necə hesablanır',
|
||||
'tours.run.paceInfo':
|
||||
'Kilometr başına öz tempiniz. Qaçış vaxtı məsafə × tempdir; yoxuşlar, enişlər və texniki çətinlik nəzərə alınmır.',
|
||||
'tours.run.paceInvalid': 'Tempi km başına dəq:san kimi, {fastest} ilə {slowest} arasında daxil edin.',
|
||||
'tours.run.paceNeeded': 'Qaçış vaxtını planlaşdırmaq və bu qaçışı saxlamaq üçün tempinizi daxil edin.',
|
||||
'tours.run.timeEstimated': 'Qaçış vaxtı (planlaşdırılan)',
|
||||
'tours.run.timeEstimatedShort': 'Qaçış vaxtı',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Qaçış vaxtı necə planlaşdırılır',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Məsafə × sizin temp, başqa heç nə: yoxuşlar, enişlər və çətinlik nəzərə alınmır. Bu plandır, qeydə alınmış vaxt deyil.',
|
||||
'tours.run.timeSum': '{distance}, {pace} dəq/km tempdə: {time}',
|
||||
'tours.bike.profile': 'Profil',
|
||||
'tours.bike.profile.touring': 'Turinq',
|
||||
'tours.bike.profile.road': 'Yol',
|
||||
|
||||
@@ -410,6 +410,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Caminhada com raquetes de neve',
|
||||
'tours.winter.labelOnly':
|
||||
'Marcado pelos viajantes. Rota e tempo são planejados como em qualquer caminhada, sem verificação para o inverno.',
|
||||
'tours.planner.tourTypeHint.run': 'A pé no seu ritmo, por caminhos bons para correr',
|
||||
'tours.planner.namePlaceholder.run': 'Corrida sem título',
|
||||
'tours.planner.unreachable.run':
|
||||
'Nenhum caminho bom para correr chega ao ponto {point}: o mais próximo que o roteador conhece fica a {distance}. Mova o ponto para um caminho ou desenhe o trecho até ele à mão.',
|
||||
'tours.run.profile': 'Perfil',
|
||||
'tours.run.profile.running': 'Corrida',
|
||||
'tours.run.profileHint.running':
|
||||
'Prefere caminhos bons para correr, pavimentados sempre que possível, na cidade, em parques e à beira de rios.',
|
||||
'tours.run.pace': 'Ritmo planejado',
|
||||
'tours.run.paceInfoLabel': 'Como o tempo de corrida é calculado',
|
||||
'tours.run.paceInfo':
|
||||
'Seu próprio ritmo por quilômetro. O tempo de corrida é distância × ritmo; subidas, descidas e dificuldade técnica não entram.',
|
||||
'tours.run.paceInvalid': 'Informe o ritmo como min:s por km, de {fastest} a {slowest}.',
|
||||
'tours.run.paceNeeded': 'Informe seu ritmo para planejar o tempo de corrida e salvar esta corrida.',
|
||||
'tours.run.timeEstimated': 'Tempo de corrida (planejado)',
|
||||
'tours.run.timeEstimatedShort': 'Tempo de corrida',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Como o tempo de corrida é planejado',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Distância × seu ritmo e nada mais: subidas, descidas e dificuldade não entram. Um plano, não um tempo registrado.',
|
||||
'tours.run.timeSum': '{distance} a {pace} min/km dão {time}',
|
||||
'tours.bike.profile': 'Perfil',
|
||||
'tours.bike.profile.touring': 'Cicloturismo',
|
||||
'tours.bike.profile.road': 'Estrada',
|
||||
|
||||
@@ -411,6 +411,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Excursió amb raquetes de neu',
|
||||
'tours.winter.labelOnly':
|
||||
'Marcat pels viatgers. La ruta i el temps es planifiquen com en qualsevol excursió, sense comprovar l’hivern.',
|
||||
'tours.planner.tourTypeHint.run': 'A peu al teu ritme, per camins bons per córrer',
|
||||
'tours.planner.namePlaceholder.run': 'Cursa sense títol',
|
||||
'tours.planner.unreachable.run':
|
||||
'Cap camí apte per córrer arriba al punt {point}: el més proper que coneix l’enrutador és a {distance}. Mou el punt a un camí o dibuixa el tram fins allà a mà.',
|
||||
'tours.run.profile': 'Perfil',
|
||||
'tours.run.profile.running': 'Córrer',
|
||||
'tours.run.profileHint.running':
|
||||
'Prefereix camins bons per córrer, asfaltats on es pugui, a la ciutat, als parcs i vora els rius.',
|
||||
'tours.run.pace': 'Ritme previst',
|
||||
'tours.run.paceInfoLabel': 'Com es calcula el temps de cursa',
|
||||
'tours.run.paceInfo':
|
||||
'El teu ritme per quilòmetre. El temps de cursa és distància × ritme; el desnivell i la dificultat tècnica no hi compten.',
|
||||
'tours.run.paceInvalid': 'Introdueix el ritme com a min:s per km, de {fastest} a {slowest}.',
|
||||
'tours.run.paceNeeded': 'Introdueix el teu ritme per planificar el temps de cursa i desar aquesta cursa.',
|
||||
'tours.run.timeEstimated': 'Temps de cursa (previst)',
|
||||
'tours.run.timeEstimatedShort': 'Temps de cursa',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Com es planifica el temps de cursa',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Distància × el teu ritme i res més: el desnivell i la dificultat no hi compten. Una planificació, no un temps enregistrat.',
|
||||
'tours.run.timeSum': '{distance} a {pace} min/km són {time}',
|
||||
'tours.bike.profile': 'Perfil',
|
||||
'tours.bike.profile.touring': 'Cicloturisme',
|
||||
'tours.bike.profile.road': 'Carretera',
|
||||
|
||||
@@ -403,6 +403,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Túra na sněžnicích',
|
||||
'tours.winter.labelOnly':
|
||||
'Označeno cestovateli. Trasa a čas se plánují jako u každé túry, bez kontroly zimních podmínek.',
|
||||
'tours.planner.tourTypeHint.run': 'Pěšky vlastním tempem, po dobře běhatelných cestách',
|
||||
'tours.planner.namePlaceholder.run': 'Běh bez názvu',
|
||||
'tours.planner.unreachable.run':
|
||||
'K bodu {point} nevede žádná cesta vhodná k běhu: nejbližší, kterou router zná, je {distance} daleko. Přesuňte bod na cestu, nebo úsek k němu nakreslete ručně.',
|
||||
'tours.run.profile': 'Profil',
|
||||
'tours.run.profile.running': 'Běh',
|
||||
'tours.run.profileHint.running':
|
||||
'Dává přednost dobře běhatelným, pokud možno zpevněným cestám ve městě, v parcích a podél řek.',
|
||||
'tours.run.pace': 'Plánované tempo',
|
||||
'tours.run.paceInfoLabel': 'Jak se počítá čas běhu',
|
||||
'tours.run.paceInfo':
|
||||
'Vaše vlastní tempo na kilometr. Čas běhu je vzdálenost × tempo; převýšení a technická obtížnost se nezapočítávají.',
|
||||
'tours.run.paceInvalid': 'Zadejte tempo jako min:s na km, od {fastest} do {slowest}.',
|
||||
'tours.run.paceNeeded': 'Zadejte své tempo, aby se naplánoval čas běhu a běh šel uložit.',
|
||||
'tours.run.timeEstimated': 'Čas běhu (plánovaný)',
|
||||
'tours.run.timeEstimatedShort': 'Čas běhu',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Jak se plánuje čas běhu',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Vzdálenost × vaše tempo a nic dalšího: převýšení a obtížnost se nezapočítávají. Plán, ne zaznamenaný čas.',
|
||||
'tours.run.timeSum': '{distance} při {pace} min/km dává {time}',
|
||||
'tours.bike.profile': 'Profil',
|
||||
'tours.bike.profile.touring': 'Treking',
|
||||
'tours.bike.profile.road': 'Silnice',
|
||||
|
||||
@@ -413,6 +413,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Schneeschuhwandern',
|
||||
'tours.winter.labelOnly':
|
||||
'Von den Reisenden gekennzeichnet. Route und Zeit sind wie bei jeder Wanderung geplant, nicht für den Winter geprüft.',
|
||||
'tours.planner.tourTypeHint.run': 'Zu Fuß in deiner Pace, auf gut laufbaren Wegen',
|
||||
'tours.planner.namePlaceholder.run': 'Unbenannter Lauf',
|
||||
'tours.planner.unreachable.run':
|
||||
'Kein laufbarer Weg erreicht Punkt {point}: der nächste, den der Router kennt, liegt {distance} entfernt. Setz den Punkt auf einen Weg oder zeichne den Abschnitt dorthin von Hand.',
|
||||
'tours.run.profile': 'Profil',
|
||||
'tours.run.profile.running': 'Laufen',
|
||||
'tours.run.profileHint.running':
|
||||
'Bevorzugt gut laufbare, möglichst befestigte Wege in der Stadt, in Parks und an Flüssen.',
|
||||
'tours.run.pace': 'Geplante Pace',
|
||||
'tours.run.paceInfoLabel': 'Wie die Laufzeit berechnet wird',
|
||||
'tours.run.paceInfo':
|
||||
'Deine eigene Pace pro Kilometer. Die Laufzeit ist Distanz × Pace; Höhenmeter und technische Schwierigkeit gehen nicht ein.',
|
||||
'tours.run.paceInvalid': 'Gib die Pace als Min:Sek pro km ein, von {fastest} bis {slowest}.',
|
||||
'tours.run.paceNeeded': 'Gib deine Pace ein, um die Laufzeit zu planen und diesen Lauf zu speichern.',
|
||||
'tours.run.timeEstimated': 'Laufzeit (geplant)',
|
||||
'tours.run.timeEstimatedShort': 'Laufzeit',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Wie die Laufzeit geplant wird',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Distanz × deine Pace und sonst nichts: Höhenmeter und Schwierigkeit gehen nicht ein. Eine Planung, keine aufgezeichnete Zeit.',
|
||||
'tours.run.timeSum': '{distance} bei {pace} min/km ergibt {time}',
|
||||
'tours.bike.profile': 'Profil',
|
||||
'tours.bike.profile.touring': 'Touring', // same-as-en
|
||||
'tours.bike.profile.road': 'Rennrad',
|
||||
|
||||
@@ -403,6 +403,25 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Snowshoe hike',
|
||||
'tours.winter.labelOnly':
|
||||
'Marked by the travellers. Route and time are planned as for any hike, not checked for winter.',
|
||||
'tours.planner.tourTypeHint.run': 'On foot at your own pace, on runnable ways',
|
||||
'tours.planner.namePlaceholder.run': 'Untitled run',
|
||||
'tours.planner.unreachable.run':
|
||||
'No runnable way reaches point {point}: the nearest the router knows is {distance} away. Move the point onto a way, or draw the leg to it by hand.',
|
||||
'tours.run.profile': 'Profile',
|
||||
'tours.run.profile.running': 'Running',
|
||||
'tours.run.profileHint.running': 'Prefers runnable, mostly paved ways in town, in parks and along rivers.',
|
||||
'tours.run.pace': 'Planned pace',
|
||||
'tours.run.paceInfoLabel': 'How the running time is worked out',
|
||||
'tours.run.paceInfo':
|
||||
'Your own pace per kilometre. The running time is distance × pace; climbs, descents and how technical the way is are not included.',
|
||||
'tours.run.paceInvalid': 'Enter the pace as min:sec per km, from {fastest} to {slowest}.',
|
||||
'tours.run.paceNeeded': 'Enter your pace to plan the running time and save this run.',
|
||||
'tours.run.timeEstimated': 'Running time (planned)',
|
||||
'tours.run.timeEstimatedShort': 'Running time',
|
||||
'tours.run.timeEstimatedInfoLabel': 'How the running time is planned',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Distance × your pace and nothing else: climbs, descents and difficulty are not included. A plan, not a recorded time.',
|
||||
'tours.run.timeSum': '{distance} at {pace} min/km is {time}',
|
||||
'tours.bike.profile': 'Profile',
|
||||
'tours.bike.profile.touring': 'Touring',
|
||||
'tours.bike.profile.road': 'Road',
|
||||
|
||||
@@ -410,6 +410,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Ruta con raquetas de nieve',
|
||||
'tours.winter.labelOnly':
|
||||
'Marcado por los viajeros. Ruta y tiempo se planifican como en cualquier ruta, sin comprobación invernal.',
|
||||
'tours.planner.tourTypeHint.run': 'A pie a tu ritmo, por caminos buenos para correr',
|
||||
'tours.planner.namePlaceholder.run': 'Carrera sin título',
|
||||
'tours.planner.unreachable.run':
|
||||
'Ningún camino apto para correr llega al punto {point}: el más cercano que conoce el enrutador está a {distance}. Mueve el punto a un camino o dibuja el tramo hasta él a mano.',
|
||||
'tours.run.profile': 'Perfil',
|
||||
'tours.run.profile.running': 'Correr',
|
||||
'tours.run.profileHint.running':
|
||||
'Prefiere caminos buenos para correr, asfaltados en lo posible, en la ciudad, en parques y junto a ríos.',
|
||||
'tours.run.pace': 'Ritmo previsto',
|
||||
'tours.run.paceInfoLabel': 'Cómo se calcula el tiempo de carrera',
|
||||
'tours.run.paceInfo':
|
||||
'Tu propio ritmo por kilómetro. El tiempo de carrera es distancia × ritmo; el desnivel y la dificultad técnica no se tienen en cuenta.',
|
||||
'tours.run.paceInvalid': 'Introduce el ritmo como min:s por km, de {fastest} a {slowest}.',
|
||||
'tours.run.paceNeeded': 'Introduce tu ritmo para planificar el tiempo de carrera y guardar esta carrera.',
|
||||
'tours.run.timeEstimated': 'Tiempo de carrera (previsto)',
|
||||
'tours.run.timeEstimatedShort': 'Tiempo de carrera',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Cómo se planifica el tiempo de carrera',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Distancia × tu ritmo y nada más: el desnivel y la dificultad no se tienen en cuenta. Una planificación, no un tiempo registrado.',
|
||||
'tours.run.timeSum': '{distance} a {pace} min/km son {time}',
|
||||
'tours.bike.profile': 'Perfil',
|
||||
'tours.bike.profile.touring': 'Cicloturismo',
|
||||
'tours.bike.profile.road': 'Carretera',
|
||||
|
||||
@@ -405,6 +405,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Räätsamatk',
|
||||
'tours.winter.labelOnly':
|
||||
'Reisijate märgitud. Marsruut ja aeg on kavandatud nagu igal matkal, talve jaoks kontrollimata.',
|
||||
'tours.planner.tourTypeHint.run': 'Jalgsi omas tempos, hästi joostavatel teedel',
|
||||
'tours.planner.namePlaceholder.run': 'Nimetu jooks',
|
||||
'tours.planner.unreachable.run':
|
||||
'Ükski joostav tee ei jõua punktini {point}: lähim, mida marsruutija teab, on {distance} kaugusel. Liiguta punkt teele või joonista lõik sinna käsitsi.',
|
||||
'tours.run.profile': 'Profiil',
|
||||
'tours.run.profile.running': 'Jooksmine',
|
||||
'tours.run.profileHint.running':
|
||||
'Eelistab hästi joostavaid, võimalusel kõvakattega teid linnas, parkides ja jõgede ääres.',
|
||||
'tours.run.pace': 'Planeeritud tempo',
|
||||
'tours.run.paceInfoLabel': 'Kuidas jooksuaeg arvutatakse',
|
||||
'tours.run.paceInfo':
|
||||
'Sinu enda tempo kilomeetri kohta. Jooksuaeg on vahemaa × tempo; tõusud, langused ja tehniline raskus ei lähe arvesse.',
|
||||
'tours.run.paceInvalid': 'Sisesta tempo kujul min:s kilomeetri kohta, vahemikus {fastest} kuni {slowest}.',
|
||||
'tours.run.paceNeeded': 'Sisesta oma tempo, et jooksuaeg planeerida ja see jooks salvestada.',
|
||||
'tours.run.timeEstimated': 'Jooksuaeg (planeeritud)',
|
||||
'tours.run.timeEstimatedShort': 'Jooksuaeg',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Kuidas jooksuaeg planeeritakse',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Vahemaa × sinu tempo ja ei midagi muud: tõusud, langused ja raskus ei lähe arvesse. Plaan, mitte salvestatud aeg.',
|
||||
'tours.run.timeSum': '{distance} tempos {pace} min/km teeb {time}',
|
||||
'tours.bike.profile': 'Profiil',
|
||||
'tours.bike.profile.touring': 'Matk',
|
||||
'tours.bike.profile.road': 'Maantee',
|
||||
|
||||
@@ -416,6 +416,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Randonnée en raquettes',
|
||||
'tours.winter.labelOnly':
|
||||
'Marqué par les voyageurs. Itinéraire et durée sont planifiés comme pour toute randonnée, sans vérification hivernale.',
|
||||
'tours.planner.tourTypeHint.run': 'À pied, à ton allure, sur des chemins où l’on court bien',
|
||||
'tours.planner.namePlaceholder.run': 'Course sans titre',
|
||||
'tours.planner.unreachable.run':
|
||||
"Aucun chemin praticable en courant n'atteint le point {point} : le plus proche que connaît le routeur est à {distance}. Déplace le point sur un chemin ou dessine le tronçon à la main.",
|
||||
'tours.run.profile': 'Profil',
|
||||
'tours.run.profile.running': 'Course à pied',
|
||||
'tours.run.profileHint.running':
|
||||
'Privilégie des chemins où l’on court bien, revêtus autant que possible, en ville, dans les parcs et le long des rivières.',
|
||||
'tours.run.pace': 'Allure prévue',
|
||||
'tours.run.paceInfoLabel': 'Comment le temps de course est calculé',
|
||||
'tours.run.paceInfo':
|
||||
'Ton allure à toi, par kilomètre. Le temps de course est distance × allure ; dénivelé et difficulté technique ne sont pas pris en compte.',
|
||||
'tours.run.paceInvalid': 'Saisis l’allure en min:s par km, de {fastest} à {slowest}.',
|
||||
'tours.run.paceNeeded': 'Saisis ton allure pour planifier le temps de course et enregistrer cette course.',
|
||||
'tours.run.timeEstimated': 'Temps de course (prévu)',
|
||||
'tours.run.timeEstimatedShort': 'Temps de course',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Comment le temps de course est planifié',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Distance × ton allure, rien d’autre : dénivelé et difficulté ne sont pas pris en compte. Une prévision, pas un temps enregistré.',
|
||||
'tours.run.timeSum': '{distance} à {pace} min/km font {time}',
|
||||
'tours.bike.profile': 'Profil',
|
||||
'tours.bike.profile.touring': 'Voyage',
|
||||
'tours.bike.profile.road': 'Route',
|
||||
|
||||
@@ -418,6 +418,27 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Πεζοπορία με χιονοπέδιλα',
|
||||
'tours.winter.labelOnly':
|
||||
'Σημειώθηκε από τους ταξιδιώτες. Η διαδρομή και ο χρόνος σχεδιάζονται όπως σε κάθε πεζοπορία, χωρίς έλεγχο για τον χειμώνα.',
|
||||
'tours.planner.tourTypeHint.run': 'Με τα πόδια, με τον δικό σου ρυθμό, σε δρόμους κατάλληλους για τρέξιμο',
|
||||
'tours.planner.namePlaceholder.run': 'Τρέξιμο χωρίς τίτλο',
|
||||
'tours.planner.unreachable.run':
|
||||
'Κανένας δρόμος κατάλληλος για τρέξιμο δεν φτάνει στο σημείο {point}: ο πλησιέστερος που γνωρίζει ο δρομολογητής απέχει {distance}. Μετακίνησε το σημείο σε δρόμο ή σχεδίασε το τμήμα ως εκεί με το χέρι.',
|
||||
'tours.run.profile': 'Προφίλ',
|
||||
'tours.run.profile.running': 'Τρέξιμο',
|
||||
'tours.run.profileHint.running':
|
||||
'Προτιμά δρόμους κατάλληλους για τρέξιμο, κατά το δυνατόν ασφαλτοστρωμένους, στην πόλη, σε πάρκα και δίπλα σε ποτάμια.',
|
||||
'tours.run.pace': 'Προγραμματισμένος ρυθμός',
|
||||
'tours.run.paceInfoLabel': 'Πώς υπολογίζεται ο χρόνος τρεξίματος',
|
||||
'tours.run.paceInfo':
|
||||
'Ο δικός σου ρυθμός ανά χιλιόμετρο. Ο χρόνος τρεξίματος είναι απόσταση × ρυθμός· ανηφόρες, κατηφόρες και τεχνική δυσκολία δεν λαμβάνονται υπόψη.',
|
||||
'tours.run.paceInvalid': 'Δώσε τον ρυθμό ως λεπ:δευτ ανά km, από {fastest} έως {slowest}.',
|
||||
'tours.run.paceNeeded':
|
||||
'Δώσε τον ρυθμό σου για να προγραμματιστεί ο χρόνος τρεξίματος και να αποθηκευτεί αυτό το τρέξιμο.',
|
||||
'tours.run.timeEstimated': 'Χρόνος τρεξίματος (προγραμματισμένος)',
|
||||
'tours.run.timeEstimatedShort': 'Χρόνος τρεξίματος',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Πώς προγραμματίζεται ο χρόνος τρεξίματος',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Απόσταση × ο ρυθμός σου και τίποτα άλλο: ανηφόρες, κατηφόρες και δυσκολία δεν λαμβάνονται υπόψη. Πρόγραμμα, όχι καταγεγραμμένος χρόνος.',
|
||||
'tours.run.timeSum': '{distance} με {pace} λεπ/km κάνει {time}',
|
||||
'tours.bike.profile': 'Προφίλ',
|
||||
'tours.bike.profile.touring': 'Περιήγηση',
|
||||
'tours.bike.profile.road': 'Δρόμου',
|
||||
|
||||
@@ -410,6 +410,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Hótalpas túra',
|
||||
'tours.winter.labelOnly':
|
||||
'Az utazók jelölték meg. Az útvonal és az idő úgy van tervezve, mint bármely túránál, téli szempontból nincs ellenőrizve.',
|
||||
'tours.planner.tourTypeHint.run': 'Gyalog a saját tempódban, jól futható utakon',
|
||||
'tours.planner.namePlaceholder.run': 'Névtelen futás',
|
||||
'tours.planner.unreachable.run':
|
||||
'A(z) {point}. pontot nem éri el futásra alkalmas út: a legközelebbi, amit a tervező ismer, {distance} távolságra van. Tedd a pontot egy útra, vagy rajzold meg kézzel a szakaszt odáig.',
|
||||
'tours.run.profile': 'Profil',
|
||||
'tours.run.profile.running': 'Futás',
|
||||
'tours.run.profileHint.running':
|
||||
'Jól futható, lehetőleg burkolt utakat választ a városban, parkokban és folyók mentén.',
|
||||
'tours.run.pace': 'Tervezett tempó',
|
||||
'tours.run.paceInfoLabel': 'Hogyan számoljuk a futásidőt',
|
||||
'tours.run.paceInfo':
|
||||
'A saját tempód kilométerenként. A futásidő távolság × tempó; a szintemelkedés és a technikai nehézség nem számít bele.',
|
||||
'tours.run.paceInvalid': 'Add meg a tempót perc:mp/km formában, {fastest} és {slowest} között.',
|
||||
'tours.run.paceNeeded': 'Add meg a tempódat a futásidő tervezéséhez és a futás mentéséhez.',
|
||||
'tours.run.timeEstimated': 'Futásidő (tervezett)',
|
||||
'tours.run.timeEstimatedShort': 'Futásidő',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Hogyan tervezzük a futásidőt',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Távolság × a tempód, semmi más: a szintemelkedés és a nehézség nem számít bele. Terv, nem rögzített idő.',
|
||||
'tours.run.timeSum': '{distance} {pace} perc/km tempóval: {time}',
|
||||
'tours.bike.profile': 'Profil',
|
||||
'tours.bike.profile.touring': 'Túra',
|
||||
'tours.bike.profile.road': 'Országúti',
|
||||
|
||||
@@ -405,6 +405,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Pendakian dengan sepatu salju',
|
||||
'tours.winter.labelOnly':
|
||||
'Ditandai oleh para pelancong. Rute dan waktu direncanakan seperti pendakian lain, tidak diperiksa untuk musim dingin.',
|
||||
'tours.planner.tourTypeHint.run': 'Berjalan kaki dengan tempomu sendiri, di jalan yang enak untuk lari',
|
||||
'tours.planner.namePlaceholder.run': 'Lari tanpa judul',
|
||||
'tours.planner.unreachable.run':
|
||||
'Tidak ada jalan yang bisa dilalui dengan berlari menuju titik {point}: yang terdekat yang dikenal router berjarak {distance}. Pindahkan titik ke sebuah jalan, atau gambar ruas menuju titik itu secara manual.',
|
||||
'tours.run.profile': 'Profil',
|
||||
'tours.run.profile.running': 'Lari',
|
||||
'tours.run.profileHint.running':
|
||||
'Mengutamakan jalan yang enak untuk lari, sebisa mungkin beraspal, di kota, di taman, dan di tepi sungai.',
|
||||
'tours.run.pace': 'Pace rencana',
|
||||
'tours.run.paceInfoLabel': 'Cara waktu lari dihitung',
|
||||
'tours.run.paceInfo':
|
||||
'Pace milikmu sendiri per kilometer. Waktu lari adalah jarak × pace; tanjakan, turunan, dan tingkat kesulitan teknis tidak dihitung.',
|
||||
'tours.run.paceInvalid': 'Masukkan pace sebagai mnt:dtk per km, dari {fastest} sampai {slowest}.',
|
||||
'tours.run.paceNeeded': 'Masukkan pace-mu untuk merencanakan waktu lari dan menyimpan lari ini.',
|
||||
'tours.run.timeEstimated': 'Waktu lari (rencana)',
|
||||
'tours.run.timeEstimatedShort': 'Waktu lari',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Cara waktu lari direncanakan',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Jarak × pace-mu, tidak ada yang lain: tanjakan, turunan, dan kesulitan tidak dihitung. Sebuah rencana, bukan waktu yang direkam.',
|
||||
'tours.run.timeSum': '{distance} dengan pace {pace} mnt/km menjadi {time}',
|
||||
'tours.bike.profile': 'Profil',
|
||||
'tours.bike.profile.touring': 'Touring', // same-as-en
|
||||
'tours.bike.profile.road': 'Road', // same-as-en
|
||||
|
||||
@@ -413,6 +413,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Ciaspolata',
|
||||
'tours.winter.labelOnly':
|
||||
'Contrassegnato dai viaggiatori. Percorso e tempi sono pianificati come per ogni escursione, non verificati per l’inverno.',
|
||||
'tours.planner.tourTypeHint.run': 'A piedi al tuo passo, su percorsi adatti alla corsa',
|
||||
'tours.planner.namePlaceholder.run': 'Corsa senza titolo',
|
||||
'tours.planner.unreachable.run':
|
||||
'Nessun percorso adatto alla corsa raggiunge il punto {point}: il più vicino che il router conosce è a {distance}. Sposta il punto su un percorso o disegna a mano il tratto fin lì.',
|
||||
'tours.run.profile': 'Profilo',
|
||||
'tours.run.profile.running': 'Corsa',
|
||||
'tours.run.profileHint.running':
|
||||
'Preferisce percorsi adatti alla corsa, asfaltati dove possibile, in città, nei parchi e lungo i fiumi.',
|
||||
'tours.run.pace': 'Passo previsto',
|
||||
'tours.run.paceInfoLabel': 'Come si calcola il tempo di corsa',
|
||||
'tours.run.paceInfo':
|
||||
'Il tuo passo al chilometro. Il tempo di corsa è distanza × passo; dislivello e difficoltà tecnica non sono considerati.',
|
||||
'tours.run.paceInvalid': 'Inserisci il passo come min:s al km, da {fastest} a {slowest}.',
|
||||
'tours.run.paceNeeded': 'Inserisci il tuo passo per pianificare il tempo di corsa e salvare questa corsa.',
|
||||
'tours.run.timeEstimated': 'Tempo di corsa (previsto)',
|
||||
'tours.run.timeEstimatedShort': 'Tempo di corsa',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Come si pianifica il tempo di corsa',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Distanza × il tuo passo e nient’altro: dislivello e difficoltà non sono considerati. Una pianificazione, non un tempo registrato.',
|
||||
'tours.run.timeSum': '{distance} a {pace} min/km fanno {time}',
|
||||
'tours.bike.profile': 'Profilo',
|
||||
'tours.bike.profile.touring': 'Turismo',
|
||||
'tours.bike.profile.road': 'Strada',
|
||||
|
||||
@@ -395,6 +395,23 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'スノーシューハイキング',
|
||||
'tours.winter.labelOnly':
|
||||
'旅行者が付けたラベルです。ルートと時間は通常のハイキングと同じく計画され、冬向けには確認されていません。',
|
||||
'tours.planner.tourTypeHint.run': '自分のペースで、走りやすい道を',
|
||||
'tours.planner.namePlaceholder.run': '無題のラン',
|
||||
'tours.planner.unreachable.run':
|
||||
'ポイント {point} に届く走れる道がありません。ルーターが知る最も近い道は {distance} 先です。ポイントを道の上に移すか、そこまでの区間を手で描いてください。',
|
||||
'tours.run.profile': 'プロファイル',
|
||||
'tours.run.profile.running': 'ランニング',
|
||||
'tours.run.profileHint.running': '街中や公園、川沿いの走りやすい、なるべく舗装された道を優先します。',
|
||||
'tours.run.pace': '予定ペース',
|
||||
'tours.run.paceInfoLabel': '走行時間の計算方法',
|
||||
'tours.run.paceInfo': '1 kmあたりのあなた自身のペースです。走行時間は距離 × ペースで、登り、下り、技術的な難しさは含みません。',
|
||||
'tours.run.paceInvalid': 'ペースは km あたり 分:秒 で、{fastest} から {slowest} の間で入力してください。',
|
||||
'tours.run.paceNeeded': '走行時間を計画してこのランを保存するには、ペースを入力してください。',
|
||||
'tours.run.timeEstimated': '走行時間 (予定)',
|
||||
'tours.run.timeEstimatedShort': '走行時間',
|
||||
'tours.run.timeEstimatedInfoLabel': '走行時間の計画方法',
|
||||
'tours.run.timeEstimatedInfo': '距離 × あなたのペースのみで、登り、下り、難しさは含みません。記録された時間ではなく計画です。',
|
||||
'tours.run.timeSum': '{distance} を {pace} 分/km で {time}',
|
||||
'tours.bike.profile': 'プロファイル',
|
||||
'tours.bike.profile.touring': 'ツーリング',
|
||||
'tours.bike.profile.road': 'ロード',
|
||||
|
||||
@@ -393,6 +393,23 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': '스노슈 하이킹',
|
||||
'tours.winter.labelOnly':
|
||||
'여행자가 표시했습니다. 경로와 시간은 다른 하이킹과 같이 계획되며 겨울 조건은 확인하지 않았습니다.',
|
||||
'tours.planner.tourTypeHint.run': '내 페이스로 걸어서, 달리기 좋은 길로',
|
||||
'tours.planner.namePlaceholder.run': '이름 없는 달리기',
|
||||
'tours.planner.unreachable.run':
|
||||
'달릴 수 있는 길이 {point}번 지점에 닿지 않습니다. 라우터가 아는 가장 가까운 길은 {distance} 떨어져 있습니다. 지점을 길 위로 옮기거나 그곳까지의 구간을 직접 그리세요.',
|
||||
'tours.run.profile': '프로필',
|
||||
'tours.run.profile.running': '달리기',
|
||||
'tours.run.profileHint.running': '시내, 공원, 강변의 달리기 좋은, 되도록 포장된 길을 우선합니다.',
|
||||
'tours.run.pace': '계획 페이스',
|
||||
'tours.run.paceInfoLabel': '달리기 시간 계산 방법',
|
||||
'tours.run.paceInfo': '킬로미터당 나만의 페이스입니다. 달리기 시간은 거리 × 페이스이며, 오르막, 내리막, 기술적 난이도는 포함되지 않습니다.',
|
||||
'tours.run.paceInvalid': '페이스를 km당 분:초로, {fastest}에서 {slowest} 사이로 입력하세요.',
|
||||
'tours.run.paceNeeded': '달리기 시간을 계획하고 이 달리기를 저장하려면 페이스를 입력하세요.',
|
||||
'tours.run.timeEstimated': '달리기 시간 (계획)',
|
||||
'tours.run.timeEstimatedShort': '달리기 시간',
|
||||
'tours.run.timeEstimatedInfoLabel': '달리기 시간 계획 방법',
|
||||
'tours.run.timeEstimatedInfo': '거리 × 나의 페이스뿐이며, 오르막, 내리막, 난이도는 포함되지 않습니다. 기록된 시간이 아니라 계획입니다.',
|
||||
'tours.run.timeSum': '{distance}, {pace}분/km 페이스로 {time}',
|
||||
'tours.bike.profile': '프로필',
|
||||
'tours.bike.profile.touring': '투어링',
|
||||
'tours.bike.profile.road': '로드',
|
||||
|
||||
@@ -412,6 +412,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Sneeuwschoenwandeling',
|
||||
'tours.winter.labelOnly':
|
||||
'Gemarkeerd door de reizigers. Route en tijd worden gepland als bij elke wandeling, niet gecontroleerd op de winter.',
|
||||
'tours.planner.tourTypeHint.run': 'Te voet in je eigen tempo, over goed beloopbare wegen',
|
||||
'tours.planner.namePlaceholder.run': 'Naamloze looptocht',
|
||||
'tours.planner.unreachable.run':
|
||||
'Geen hardloopbare weg bereikt punt {point}: de dichtstbijzijnde die de router kent ligt {distance} verderop. Zet het punt op een weg of teken het stuk ernaartoe met de hand.',
|
||||
'tours.run.profile': 'Profiel',
|
||||
'tours.run.profile.running': 'Hardlopen',
|
||||
'tours.run.profileHint.running':
|
||||
'Kiest goed beloopbare, zo veel mogelijk verharde wegen in de stad, in parken en langs rivieren.',
|
||||
'tours.run.pace': 'Gepland tempo',
|
||||
'tours.run.paceInfoLabel': 'Hoe de looptijd wordt berekend',
|
||||
'tours.run.paceInfo':
|
||||
'Je eigen tempo per kilometer. De looptijd is afstand × tempo; hoogtemeters en technische moeilijkheid tellen niet mee.',
|
||||
'tours.run.paceInvalid': 'Vul het tempo in als min:sec per km, van {fastest} tot {slowest}.',
|
||||
'tours.run.paceNeeded': 'Vul je tempo in om de looptijd te plannen en deze looptocht op te slaan.',
|
||||
'tours.run.timeEstimated': 'Looptijd (gepland)',
|
||||
'tours.run.timeEstimatedShort': 'Looptijd',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Hoe de looptijd wordt gepland',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Afstand × je tempo en verder niets: hoogtemeters en moeilijkheid tellen niet mee. Een planning, geen opgenomen tijd.',
|
||||
'tours.run.timeSum': '{distance} bij {pace} min/km is {time}',
|
||||
'tours.bike.profile': 'Profiel',
|
||||
'tours.bike.profile.touring': 'Toer',
|
||||
'tours.bike.profile.road': 'Racefiets',
|
||||
|
||||
@@ -419,6 +419,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Wędrówka na rakietach śnieżnych',
|
||||
'tours.winter.labelOnly':
|
||||
'Oznaczone przez podróżnych. Trasa i czas są planowane jak przy każdej wędrówce, bez sprawdzania pod kątem zimy.',
|
||||
'tours.planner.tourTypeHint.run': 'Pieszo we własnym tempie, po drogach dobrych do biegania',
|
||||
'tours.planner.namePlaceholder.run': 'Bieg bez nazwy',
|
||||
'tours.planner.unreachable.run':
|
||||
'Do punktu {point} nie prowadzi żadna droga dobra do biegania: najbliższa, którą zna router, jest {distance} dalej. Przesuń punkt na drogę albo narysuj odcinek do niego ręcznie.',
|
||||
'tours.run.profile': 'Profil',
|
||||
'tours.run.profile.running': 'Bieganie',
|
||||
'tours.run.profileHint.running':
|
||||
'Wybiera drogi dobre do biegania, w miarę możliwości utwardzone, w mieście, w parkach i wzdłuż rzek.',
|
||||
'tours.run.pace': 'Planowane tempo',
|
||||
'tours.run.paceInfoLabel': 'Jak liczony jest czas biegu',
|
||||
'tours.run.paceInfo':
|
||||
'Twoje własne tempo na kilometr. Czas biegu to dystans × tempo; przewyższenia i trudność techniczna nie są uwzględniane.',
|
||||
'tours.run.paceInvalid': 'Wpisz tempo jako min:s na km, od {fastest} do {slowest}.',
|
||||
'tours.run.paceNeeded': 'Wpisz swoje tempo, aby zaplanować czas biegu i zapisać ten bieg.',
|
||||
'tours.run.timeEstimated': 'Czas biegu (planowany)',
|
||||
'tours.run.timeEstimatedShort': 'Czas biegu',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Jak planowany jest czas biegu',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Dystans × Twoje tempo i nic więcej: przewyższenia i trudność nie są uwzględniane. Plan, a nie zarejestrowany czas.',
|
||||
'tours.run.timeSum': '{distance} przy {pace} min/km to {time}',
|
||||
'tours.bike.profile': 'Profil',
|
||||
'tours.bike.profile.touring': 'Turystyka',
|
||||
'tours.bike.profile.road': 'Szosa',
|
||||
|
||||
@@ -423,6 +423,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Поход на снегоступах',
|
||||
'tours.winter.labelOnly':
|
||||
'Отмечено путешественниками. Маршрут и время рассчитаны как для любого похода, без проверки на зимние условия.',
|
||||
'tours.planner.tourTypeHint.run': 'Пешком в своём темпе, по удобным для бега дорогам',
|
||||
'tours.planner.namePlaceholder.run': 'Пробежка без названия',
|
||||
'tours.planner.unreachable.run':
|
||||
'К точке {point} не ведёт ни одна дорога для бега: ближайшая, которую знает маршрутизатор, в {distance}. Перенесите точку на дорогу или нарисуйте участок к ней вручную.',
|
||||
'tours.run.profile': 'Профиль',
|
||||
'tours.run.profile.running': 'Бег',
|
||||
'tours.run.profileHint.running':
|
||||
'Предпочитает удобные для бега, по возможности с покрытием, дороги в городе, в парках и вдоль рек.',
|
||||
'tours.run.pace': 'Плановый темп',
|
||||
'tours.run.paceInfoLabel': 'Как считается время бега',
|
||||
'tours.run.paceInfo':
|
||||
'Ваш собственный темп на километр. Время бега равно расстоянию × темп; набор высоты и техническая сложность не учитываются.',
|
||||
'tours.run.paceInvalid': 'Введите темп как мин:с на км, от {fastest} до {slowest}.',
|
||||
'tours.run.paceNeeded': 'Введите свой темп, чтобы рассчитать время бега и сохранить эту пробежку.',
|
||||
'tours.run.timeEstimated': 'Время бега (план)',
|
||||
'tours.run.timeEstimatedShort': 'Время бега',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Как планируется время бега',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Расстояние × ваш темп и ничего больше: набор высоты и сложность не учитываются. Это план, а не записанное время.',
|
||||
'tours.run.timeSum': '{distance} в темпе {pace} мин/км: {time}',
|
||||
'tours.bike.profile': 'Профиль',
|
||||
'tours.bike.profile.touring': 'Туризм',
|
||||
'tours.bike.profile.road': 'Шоссе',
|
||||
|
||||
@@ -404,6 +404,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Túra na snežniciach',
|
||||
'tours.winter.labelOnly':
|
||||
'Označené cestovateľmi. Trasa a čas sa plánujú ako pri každej túre, bez kontroly zimných podmienok.',
|
||||
'tours.planner.tourTypeHint.run': 'Pešo vlastným tempom, po dobre bežateľných cestách',
|
||||
'tours.planner.namePlaceholder.run': 'Beh bez názvu',
|
||||
'tours.planner.unreachable.run':
|
||||
'K bodu {point} nevedie žiadna cesta vhodná na beh: najbližšia, ktorú router pozná, je {distance} ďaleko. Presuňte bod na cestu alebo úsek k nemu nakreslite ručne.',
|
||||
'tours.run.profile': 'Profil',
|
||||
'tours.run.profile.running': 'Beh',
|
||||
'tours.run.profileHint.running':
|
||||
'Uprednostňuje dobre bežateľné, podľa možnosti spevnené cesty v meste, v parkoch a pozdĺž riek.',
|
||||
'tours.run.pace': 'Plánované tempo',
|
||||
'tours.run.paceInfoLabel': 'Ako sa počíta čas behu',
|
||||
'tours.run.paceInfo':
|
||||
'Vaše vlastné tempo na kilometer. Čas behu je vzdialenosť × tempo; prevýšenie a technická náročnosť sa nezapočítavajú.',
|
||||
'tours.run.paceInvalid': 'Zadajte tempo ako min:s na km, od {fastest} do {slowest}.',
|
||||
'tours.run.paceNeeded': 'Zadajte svoje tempo, aby sa naplánoval čas behu a beh sa dal uložiť.',
|
||||
'tours.run.timeEstimated': 'Čas behu (plánovaný)',
|
||||
'tours.run.timeEstimatedShort': 'Čas behu',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Ako sa plánuje čas behu',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Vzdialenosť × vaše tempo a nič iné: prevýšenie a náročnosť sa nezapočítavajú. Plán, nie zaznamenaný čas.',
|
||||
'tours.run.timeSum': '{distance} pri {pace} min/km dáva {time}',
|
||||
'tours.bike.profile': 'Profil',
|
||||
'tours.bike.profile.touring': 'Trekking',
|
||||
'tours.bike.profile.road': 'Cestný',
|
||||
|
||||
@@ -402,6 +402,25 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Snöskovandring',
|
||||
'tours.winter.labelOnly':
|
||||
'Märkt av resenärerna. Rutt och tid planeras som för alla vandringar, inte kontrollerade för vinter.',
|
||||
'tours.planner.tourTypeHint.run': 'Till fots i din egen takt, på bra löpvägar',
|
||||
'tours.planner.namePlaceholder.run': 'Namnlös löptur',
|
||||
'tours.planner.unreachable.run':
|
||||
'Ingen väg som går att springa på når punkt {point}: den närmaste som routern känner till ligger {distance} bort. Flytta punkten till en väg eller rita sträckan dit för hand.',
|
||||
'tours.run.profile': 'Profil',
|
||||
'tours.run.profile.running': 'Löpning',
|
||||
'tours.run.profileHint.running': 'Föredrar bra löpvägar, belagda där det går, i stan, i parker och längs vattendrag.',
|
||||
'tours.run.pace': 'Planerat tempo',
|
||||
'tours.run.paceInfoLabel': 'Så räknas löptiden ut',
|
||||
'tours.run.paceInfo':
|
||||
'Ditt eget tempo per kilometer. Löptiden är sträcka × tempo; stigningar och teknisk svårighet räknas inte in.',
|
||||
'tours.run.paceInvalid': 'Ange tempot som min:sek per km, från {fastest} till {slowest}.',
|
||||
'tours.run.paceNeeded': 'Ange ditt tempo för att planera löptiden och spara löpturen.',
|
||||
'tours.run.timeEstimated': 'Löptid (planerad)',
|
||||
'tours.run.timeEstimatedShort': 'Löptid',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Så planeras löptiden',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Sträcka × ditt tempo och inget annat: stigningar och svårighet räknas inte in. En planering, ingen inspelad tid.',
|
||||
'tours.run.timeSum': '{distance} i {pace} min/km blir {time}',
|
||||
'tours.bike.profile': 'Profil',
|
||||
'tours.bike.profile.touring': 'Tur',
|
||||
'tours.bike.profile.road': 'Landsväg',
|
||||
|
||||
@@ -384,6 +384,24 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'เดินป่าด้วยรองเท้าลุยหิมะ',
|
||||
'tours.winter.labelOnly':
|
||||
'ผู้เดินทางเป็นผู้ทำเครื่องหมาย เส้นทางและเวลาวางแผนเหมือนการเดินป่าทั่วไป ไม่ได้ตรวจสอบสำหรับฤดูหนาว',
|
||||
'tours.planner.tourTypeHint.run': 'เดินเท้าตามจังหวะของคุณ บนทางที่วิ่งได้สะดวก',
|
||||
'tours.planner.namePlaceholder.run': 'การวิ่งที่ไม่มีชื่อ',
|
||||
'tours.planner.unreachable.run':
|
||||
'ไม่มีทางที่วิ่งได้ไปถึงจุด {point}: ทางที่ใกล้ที่สุดที่เราเตอร์รู้จักอยู่ห่างออกไป {distance} ย้ายจุดไปไว้บนทาง หรือวาดช่วงไปยังจุดนั้นด้วยมือ',
|
||||
'tours.run.profile': 'โปรไฟล์',
|
||||
'tours.run.profile.running': 'วิ่ง',
|
||||
'tours.run.profileHint.running': 'เลือกทางที่วิ่งได้สะดวก ลาดยางเท่าที่ทำได้ ในเมือง ในสวนสาธารณะ และริมแม่น้ำ',
|
||||
'tours.run.pace': 'เพซที่วางแผนไว้',
|
||||
'tours.run.paceInfoLabel': 'วิธีคำนวณเวลาวิ่ง',
|
||||
'tours.run.paceInfo': 'เพซของคุณเองต่อกิโลเมตร เวลาวิ่งคือระยะทาง × เพซ ไม่รวมทางขึ้น ทางลง และความยากทางเทคนิค',
|
||||
'tours.run.paceInvalid': 'ใส่เพซในรูปแบบ นาที:วินาที ต่อ km ตั้งแต่ {fastest} ถึง {slowest}',
|
||||
'tours.run.paceNeeded': 'ใส่เพซของคุณเพื่อวางแผนเวลาวิ่งและบันทึกการวิ่งนี้',
|
||||
'tours.run.timeEstimated': 'เวลาวิ่ง (ตามแผน)',
|
||||
'tours.run.timeEstimatedShort': 'เวลาวิ่ง',
|
||||
'tours.run.timeEstimatedInfoLabel': 'วิธีวางแผนเวลาวิ่ง',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'ระยะทาง × เพซของคุณเท่านั้น ไม่รวมทางขึ้น ทางลง และความยาก เป็นแผน ไม่ใช่เวลาที่บันทึกไว้',
|
||||
'tours.run.timeSum': '{distance} ที่เพซ {pace} นาที/km เท่ากับ {time}',
|
||||
'tours.bike.profile': 'โปรไฟล์',
|
||||
'tours.bike.profile.touring': 'ทัวริ่ง',
|
||||
'tours.bike.profile.road': 'เสือหมอบ',
|
||||
|
||||
@@ -20,7 +20,7 @@ const tokens = (value: string) => [...value.matchAll(/\{[^{}]+\}/g)].map((match)
|
||||
// placeholder spec; here only the general keys are.
|
||||
const groups = pluralGroups(Object.keys(english));
|
||||
const generalKeys = (keys: string[]) => keys.filter((key) => !pluralFormOf(key, groups));
|
||||
const GENERAL_KEY_COUNT = 832;
|
||||
const GENERAL_KEY_COUNT = 848;
|
||||
|
||||
function literalKeys(source: string): string[] {
|
||||
const tree = ts.createSourceFile('locale.ts', source, ts.ScriptTarget.Latest, true);
|
||||
|
||||
@@ -404,6 +404,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Kar ayakkabısıyla yürüyüş',
|
||||
'tours.winter.labelOnly':
|
||||
'Gezginler tarafından işaretlendi. Rota ve süre her yürüyüşteki gibi planlanır, kış koşullarına göre denetlenmez.',
|
||||
'tours.planner.tourTypeHint.run': 'Yürüyerek kendi temponda, koşmaya uygun yollarda',
|
||||
'tours.planner.namePlaceholder.run': 'Adsız koşu',
|
||||
'tours.planner.unreachable.run':
|
||||
'{point}. noktaya koşmaya uygun hiçbir yol ulaşmıyor: yönlendiricinin bildiği en yakın yol {distance} uzakta. Noktayı bir yola taşı ya da oraya giden bölümü elle çiz.',
|
||||
'tours.run.profile': 'Profil',
|
||||
'tours.run.profile.running': 'Koşu',
|
||||
'tours.run.profileHint.running':
|
||||
'Şehirde, parklarda ve nehir kenarlarında koşmaya uygun, mümkün olduğunca asfalt yolları tercih eder.',
|
||||
'tours.run.pace': 'Planlanan tempo',
|
||||
'tours.run.paceInfoLabel': 'Koşu süresi nasıl hesaplanır',
|
||||
'tours.run.paceInfo':
|
||||
'Kilometre başına kendi tempon. Koşu süresi mesafe × tempodur; tırmanışlar, inişler ve teknik zorluk hesaba katılmaz.',
|
||||
'tours.run.paceInvalid': 'Tempoyu km başına dk:sn olarak, {fastest} ile {slowest} arasında gir.',
|
||||
'tours.run.paceNeeded': 'Koşu süresini planlamak ve bu koşuyu kaydetmek için temponu gir.',
|
||||
'tours.run.timeEstimated': 'Koşu süresi (planlanan)',
|
||||
'tours.run.timeEstimatedShort': 'Koşu süresi',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Koşu süresi nasıl planlanır',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Mesafe × tempon, başka hiçbir şey değil: tırmanışlar, inişler ve zorluk hesaba katılmaz. Kayıtlı bir süre değil, bir plan.',
|
||||
'tours.run.timeSum': '{distance}, {pace} dk/km tempoyla {time}',
|
||||
'tours.bike.profile': 'Profil',
|
||||
'tours.bike.profile.touring': 'Tur',
|
||||
'tours.bike.profile.road': 'Yol',
|
||||
|
||||
@@ -418,6 +418,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Похід на снігоступах',
|
||||
'tours.winter.labelOnly':
|
||||
'Позначено мандрівниками. Маршрут і час сплановано як для будь-якого походу, без перевірки на зимові умови.',
|
||||
'tours.planner.tourTypeHint.run': 'Пішки у власному темпі, дорогами, зручними для бігу',
|
||||
'tours.planner.namePlaceholder.run': 'Пробіжка без назви',
|
||||
'tours.planner.unreachable.run':
|
||||
'До точки {point} не веде жодна дорога для бігу: найближча, яку знає маршрутизатор, за {distance}. Перенесіть точку на дорогу або намалюйте ділянку до неї вручну.',
|
||||
'tours.run.profile': 'Профіль',
|
||||
'tours.run.profile.running': 'Біг',
|
||||
'tours.run.profileHint.running':
|
||||
'Віддає перевагу зручним для бігу, по змозі з покриттям, дорогам у місті, у парках і вздовж річок.',
|
||||
'tours.run.pace': 'Плановий темп',
|
||||
'tours.run.paceInfoLabel': 'Як рахується час бігу',
|
||||
'tours.run.paceInfo':
|
||||
'Ваш власний темп на кілометр. Час бігу дорівнює відстані × темп; набір висоти й технічна складність не враховуються.',
|
||||
'tours.run.paceInvalid': 'Введіть темп як хв:с на км, від {fastest} до {slowest}.',
|
||||
'tours.run.paceNeeded': 'Введіть свій темп, щоб розрахувати час бігу й зберегти цю пробіжку.',
|
||||
'tours.run.timeEstimated': 'Час бігу (план)',
|
||||
'tours.run.timeEstimatedShort': 'Час бігу',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Як планується час бігу',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Відстань × ваш темп і нічого більше: набір висоти й складність не враховуються. Це план, а не записаний час.',
|
||||
'tours.run.timeSum': '{distance} у темпі {pace} хв/км: {time}',
|
||||
'tours.bike.profile': 'Профіль',
|
||||
'tours.bike.profile.touring': 'Туризм',
|
||||
'tours.bike.profile.road': 'Шосе',
|
||||
|
||||
@@ -402,6 +402,26 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.snowshoe': 'Đi bộ bằng giày tuyết',
|
||||
'tours.winter.labelOnly':
|
||||
'Do du khách đánh dấu. Tuyến đường và thời gian được lập như mọi chuyến đi bộ khác, không kiểm tra cho mùa đông.',
|
||||
'tours.planner.tourTypeHint.run': 'Đi bộ theo nhịp của bạn, trên những con đường dễ chạy',
|
||||
'tours.planner.namePlaceholder.run': 'Buổi chạy chưa đặt tên',
|
||||
'tours.planner.unreachable.run':
|
||||
'Không có đường chạy được nào tới điểm {point}: đường gần nhất mà bộ định tuyến biết cách {distance}. Hãy dời điểm lên một con đường, hoặc tự vẽ đoạn tới đó.',
|
||||
'tours.run.profile': 'Hồ sơ',
|
||||
'tours.run.profile.running': 'Chạy bộ',
|
||||
'tours.run.profileHint.running':
|
||||
'Ưu tiên đường dễ chạy, trải nhựa khi có thể, trong thành phố, trong công viên và dọc bờ sông.',
|
||||
'tours.run.pace': 'Nhịp chạy dự kiến',
|
||||
'tours.run.paceInfoLabel': 'Cách tính thời gian chạy',
|
||||
'tours.run.paceInfo':
|
||||
'Nhịp chạy của riêng bạn trên mỗi kilômét. Thời gian chạy là quãng đường × nhịp chạy; độ dốc lên xuống và độ khó kỹ thuật không được tính.',
|
||||
'tours.run.paceInvalid': 'Nhập nhịp chạy dạng phút:giây mỗi km, từ {fastest} đến {slowest}.',
|
||||
'tours.run.paceNeeded': 'Nhập nhịp chạy của bạn để lên kế hoạch thời gian chạy và lưu buổi chạy này.',
|
||||
'tours.run.timeEstimated': 'Thời gian chạy (dự kiến)',
|
||||
'tours.run.timeEstimatedShort': 'Thời gian chạy',
|
||||
'tours.run.timeEstimatedInfoLabel': 'Cách lên kế hoạch thời gian chạy',
|
||||
'tours.run.timeEstimatedInfo':
|
||||
'Quãng đường × nhịp chạy của bạn, không gì khác: độ dốc lên xuống và độ khó không được tính. Đây là kế hoạch, không phải thời gian đã ghi.',
|
||||
'tours.run.timeSum': '{distance} với nhịp {pace} phút/km là {time}',
|
||||
'tours.bike.profile': 'Hồ sơ',
|
||||
'tours.bike.profile.touring': 'Du lịch',
|
||||
'tours.bike.profile.road': 'Đường trường',
|
||||
|
||||
@@ -367,6 +367,22 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.winter_hike': '冬季健行',
|
||||
'tours.winter.activity.snowshoe': '雪鞋健行',
|
||||
'tours.winter.labelOnly': '由旅行者標記。路線與時間按一般健行規劃,未針對冬季查核。',
|
||||
'tours.planner.tourTypeHint.run': '依你自己的配速步行,走適合跑步的道路',
|
||||
'tours.planner.namePlaceholder.run': '未命名的跑步',
|
||||
'tours.planner.unreachable.run': '沒有適合跑步的道路能到達第 {point} 個點:路由器所知最近的道路在 {distance} 之外。請把該點移到道路上,或手動繪製到那裡的路段。',
|
||||
'tours.run.profile': '類型',
|
||||
'tours.run.profile.running': '跑步',
|
||||
'tours.run.profileHint.running': '優先選擇市區、公園與河岸適合跑步、盡量鋪面的道路。',
|
||||
'tours.run.pace': '計畫配速',
|
||||
'tours.run.paceInfoLabel': '跑步時間如何計算',
|
||||
'tours.run.paceInfo': '你自己的每公里配速。跑步時間等於距離 × 配速;爬升、下降與技術難度不計入。',
|
||||
'tours.run.paceInvalid': '請以每公里 分:秒 輸入配速,範圍 {fastest} 至 {slowest}。',
|
||||
'tours.run.paceNeeded': '輸入你的配速,以規劃跑步時間並儲存這次跑步。',
|
||||
'tours.run.timeEstimated': '跑步時間(計畫)',
|
||||
'tours.run.timeEstimatedShort': '跑步時間',
|
||||
'tours.run.timeEstimatedInfoLabel': '跑步時間如何規劃',
|
||||
'tours.run.timeEstimatedInfo': '僅為距離 × 你的配速:爬升、下降與難度皆不計入。這是計畫,不是記錄的時間。',
|
||||
'tours.run.timeSum': '{distance},配速 {pace} 分/公里,用時 {time}',
|
||||
'tours.bike.profile': '類型',
|
||||
'tours.bike.profile.touring': '旅行',
|
||||
'tours.bike.profile.road': '公路',
|
||||
|
||||
@@ -368,6 +368,22 @@ const tours: TranslationStrings = {
|
||||
'tours.winter.activity.winter_hike': '冬季徒步',
|
||||
'tours.winter.activity.snowshoe': '雪鞋徒步',
|
||||
'tours.winter.labelOnly': '由旅行者标记。路线和时间按普通徒步规划,未针对冬季核查。',
|
||||
'tours.planner.tourTypeHint.run': '按你自己的配速步行,走适合跑步的道路',
|
||||
'tours.planner.namePlaceholder.run': '未命名的跑步',
|
||||
'tours.planner.unreachable.run': '没有适合跑步的道路能到达第 {point} 个点:路由器知道的最近道路在 {distance} 之外。请把该点移到道路上,或手动绘制到那里的路段。',
|
||||
'tours.run.profile': '类型',
|
||||
'tours.run.profile.running': '跑步',
|
||||
'tours.run.profileHint.running': '优先选择城市、公园和河边适合跑步、尽量铺装的道路。',
|
||||
'tours.run.pace': '计划配速',
|
||||
'tours.run.paceInfoLabel': '跑步时间如何计算',
|
||||
'tours.run.paceInfo': '你自己的每公里配速。跑步时间等于距离 × 配速;爬升、下降和技术难度不计入。',
|
||||
'tours.run.paceInvalid': '请按每公里 分:秒 输入配速,范围 {fastest} 至 {slowest}。',
|
||||
'tours.run.paceNeeded': '输入你的配速,以计划跑步时间并保存这次跑步。',
|
||||
'tours.run.timeEstimated': '跑步时间(计划)',
|
||||
'tours.run.timeEstimatedShort': '跑步时间',
|
||||
'tours.run.timeEstimatedInfoLabel': '跑步时间如何计划',
|
||||
'tours.run.timeEstimatedInfo': '仅为距离 × 你的配速:爬升、下降和难度均不计入。这是计划,不是记录的时间。',
|
||||
'tours.run.timeSum': '{distance},配速 {pace} 分/公里,用时 {time}',
|
||||
'tours.bike.profile': '类型',
|
||||
'tours.bike.profile.touring': '旅行',
|
||||
'tours.bike.profile.road': '公路',
|
||||
|
||||
@@ -55,6 +55,7 @@ export * from './place/place-website';
|
||||
export * from './roadtrip/roadtrip.schema';
|
||||
export * from './place/track-colors';
|
||||
export * from './tours/tours.schema';
|
||||
export * from './tours/run-pace';
|
||||
export * from './tours/tour-provenance.schema';
|
||||
export * from './tours/tour-library.schema';
|
||||
export * from './tours/tour-poi-search.schema';
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
import {
|
||||
MAX_RUN_PACE_SECONDS_PER_KM,
|
||||
MIN_RUN_PACE_SECONDS_PER_KM,
|
||||
runMinutesAtPace,
|
||||
runPaceSecondsPerKmSchema,
|
||||
} from './run-pace';
|
||||
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
describe('run pace (RUN-01)', () => {
|
||||
it('plans the distance at the pace: 8 km at 6:00 min/km is 48 minutes', () => {
|
||||
expect(runMinutesAtPace(8, 360)).toBe(48);
|
||||
expect(runMinutesAtPace(10, 330)).toBe(55);
|
||||
// Rounded to the minute, never cut short: 5.03 km at 5:00 is 25 min 9 s.
|
||||
expect(runMinutesAtPace(5.03, 300)).toBe(25);
|
||||
expect(runMinutesAtPace(0, 360)).toBe(0);
|
||||
});
|
||||
|
||||
it('takes whole seconds between 2:00 and 20:00 min/km only', () => {
|
||||
expect([MIN_RUN_PACE_SECONDS_PER_KM, MAX_RUN_PACE_SECONDS_PER_KM]).toEqual([120, 1200]);
|
||||
expect(runPaceSecondsPerKmSchema.safeParse(360).success).toBe(true);
|
||||
for (const pace of [0, -1, 119, 1201, 300.5, Number.POSITIVE_INFINITY]) {
|
||||
expect(runPaceSecondsPerKmSchema.safeParse(pace).success).toBe(false);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,23 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
/**
|
||||
* RUN-01: a run is planned with the runner's own pace, in seconds per
|
||||
* kilometre, and its time is the distance at that pace. Nothing else goes in:
|
||||
* no climb, no descent, no surface and no difficulty, and TREK suggests no
|
||||
* pace of its own. A run without a pace has no time; it stays unknown.
|
||||
*
|
||||
* The bounds keep a typo out, not a runner: 2:00 min/km is faster than any
|
||||
* road record, 20:00 min/km slower than walking.
|
||||
*/
|
||||
export const MIN_RUN_PACE_SECONDS_PER_KM = 2 * 60;
|
||||
export const MAX_RUN_PACE_SECONDS_PER_KM = 20 * 60;
|
||||
export const runPaceSecondsPerKmSchema = z
|
||||
.number()
|
||||
.int()
|
||||
.min(MIN_RUN_PACE_SECONDS_PER_KM)
|
||||
.max(MAX_RUN_PACE_SECONDS_PER_KM);
|
||||
|
||||
/** The planned running time in whole minutes: the distance at the pace, 8 km at 6:00 min/km is 48 minutes. */
|
||||
export function runMinutesAtPace(distanceKm: number, paceSecondsPerKm: number): number {
|
||||
return Math.round((distanceKm * paceSecondsPerKm) / 60);
|
||||
}
|
||||
@@ -3,6 +3,7 @@ import {
|
||||
paddleBoatTypeSchema,
|
||||
paddleWaterContextSchema,
|
||||
plannableTourTypeSchema,
|
||||
runProfileSchema,
|
||||
} from './tours.schema';
|
||||
|
||||
import { z } from 'zod';
|
||||
@@ -38,20 +39,23 @@ export type TourGpxPreviewResponse = z.infer<typeof tourGpxPreviewResponseSchema
|
||||
/**
|
||||
* The fields of the multipart import beside the file, as strings the way a
|
||||
* form sends them. Left out, the import is a hike, as it always was; a paddle
|
||||
* import names its boat and water, and a bike import its profile, like a
|
||||
* planned tour of that type does.
|
||||
* import names its boat and water, and a bike import and a run import (RUN-01)
|
||||
* their profile, like a planned tour of that type does. A run import has no
|
||||
* pace: its time stays unknown until a run is planned from it.
|
||||
*/
|
||||
export const tourGpxImportFieldsSchema = z
|
||||
.object({
|
||||
tour_type: plannableTourTypeSchema.default('hike'),
|
||||
bike_profile: bikeProfileSchema.optional(),
|
||||
run_profile: runProfileSchema.optional(),
|
||||
boat_type: paddleBoatTypeSchema.optional(),
|
||||
water_context: paddleWaterContextSchema.optional(),
|
||||
})
|
||||
.superRefine((value, ctx) => {
|
||||
const owners = { bike_profile: 'bike', boat_type: 'kayak', water_context: 'kayak' } as const;
|
||||
for (const [field, owner] of Object.entries(owners) as Array<[keyof typeof owners, string]>) {
|
||||
const name = owner === 'bike' ? 'a bike import' : 'a paddle import';
|
||||
const owners = { bike_profile: 'bike', run_profile: 'run', boat_type: 'kayak', water_context: 'kayak' } as const;
|
||||
const names = { bike: 'a bike import', run: 'a run import', kayak: 'a paddle import' } as const;
|
||||
for (const [field, owner] of Object.entries(owners) as Array<[keyof typeof owners, keyof typeof names]>) {
|
||||
const name = names[owner];
|
||||
if (value.tour_type === owner && value[field] === undefined)
|
||||
ctx.addIssue({ code: z.ZodIssueCode.custom, path: [field], message: `${name} needs ${field}` });
|
||||
if (value.tour_type !== owner && value[field] !== undefined)
|
||||
|
||||
@@ -40,7 +40,7 @@ describe('tour POI search contracts (PLN-02)', () => {
|
||||
],
|
||||
}).success,
|
||||
).toBe(false);
|
||||
expect(tourPoiSearchRequestSchema.safeParse({ ...ok, tour_type: 'run' }).success).toBe(false);
|
||||
expect(tourPoiSearchRequestSchema.safeParse({ ...ok, tour_type: 'food' }).success).toBe(false);
|
||||
expect(tourPoiSearchRequestSchema.safeParse({ ...ok, add: true }).success).toBe(false);
|
||||
});
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ export const TOUR_POI_CATEGORIES_BY_TYPE: Record<PlannableTourType, readonly Tou
|
||||
bike: ['drinking_water', 'bike_repair', 'food', 'viewpoint', 'toilets', 'shelter', 'picnic', 'campsite', 'sights'],
|
||||
kayak: ['slipway', 'boat_rental', 'drinking_water', 'food', 'toilets', 'picnic', 'campsite', 'shelter'],
|
||||
walk: ['sights', 'museum', 'park', 'viewpoint', 'cafe', 'restaurant', 'market', 'toilets', 'drinking_water'],
|
||||
run: ['drinking_water', 'toilets', 'park', 'viewpoint', 'cafe', 'food', 'shelter', 'sights'],
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
MAX_STATION_STAY_MINUTES,
|
||||
recommendedPaddleSpeedKmh,
|
||||
plannedTourDurationMinutesSchema,
|
||||
RUN_PROFILES,
|
||||
stationKeySchema,
|
||||
tourCopyRequestSchema,
|
||||
tourCreateRequestSchema,
|
||||
@@ -284,7 +285,7 @@ describe('Tours paddle type', () => {
|
||||
it('refuses boat fields on a hike, and a type nobody can plan yet', () => {
|
||||
expect(() => tourCreateRequestSchema.parse({ ...baseRequest, boat_type: 'sup' })).toThrow(/paddle tour/);
|
||||
expect(() => tourCreateRequestSchema.parse({ ...baseRequest, paddle_speed_kmh: 4 })).toThrow(/paddle tour/);
|
||||
expect(() => tourCreateRequestSchema.parse({ ...baseRequest, tour_type: 'run' })).toThrow();
|
||||
expect(() => tourCreateRequestSchema.parse({ ...baseRequest, tour_type: 'food' })).toThrow();
|
||||
});
|
||||
|
||||
it('suggests 4 km/h for kayak, canoe and SUP, and nothing for any other boat', () => {
|
||||
@@ -590,3 +591,85 @@ describe('winter activity of a hike (HIK-01)', () => {
|
||||
expect(tourListItemSchema.safeParse({ ...listedHike, winter_activity: 'ski_tour' }).success).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('runs (RUN-01)', () => {
|
||||
const run = { ...baseRequest, tour_type: 'run' as const, run_profile: 'running' as const };
|
||||
const ferrata = {
|
||||
kind: 'ferrata' as const,
|
||||
ref: 'way/1',
|
||||
name: null,
|
||||
geometry: [
|
||||
[48, 11],
|
||||
[48.01, 11.02],
|
||||
],
|
||||
};
|
||||
|
||||
it('saves a run with its profile and pace, and nothing of a hike, a bike tour or a paddle tour', () => {
|
||||
expect(RUN_PROFILES).toEqual(['running']);
|
||||
expect(tourCreateRequestSchema.parse({ ...run, run_pace_seconds_per_km: 360 })).toMatchObject({
|
||||
tour_type: 'run',
|
||||
run_profile: 'running',
|
||||
run_pace_seconds_per_km: 360,
|
||||
max_hiking_difficulty: null,
|
||||
});
|
||||
// Without a pace the run has no time: unknown, never a pace TREK made up.
|
||||
expect(tourCreateRequestSchema.parse(run).run_pace_seconds_per_km).toBeUndefined();
|
||||
expect(tourCreateRequestSchema.parse({ ...run, run_pace_seconds_per_km: null }).run_pace_seconds_per_km).toBeNull();
|
||||
});
|
||||
|
||||
it('refuses a pace that is no whole number of seconds, not positive or out of bounds', () => {
|
||||
for (const pace of [0, -300, 119, 1201, 360.5, Number.NaN]) {
|
||||
expect(tourCreateRequestSchema.safeParse({ ...run, run_pace_seconds_per_km: pace }).success).toBe(false);
|
||||
}
|
||||
expect(tourCreateRequestSchema.safeParse({ ...run, run_pace_seconds_per_km: 120 }).success).toBe(true);
|
||||
expect(tourCreateRequestSchema.safeParse({ ...run, run_pace_seconds_per_km: 1200 }).success).toBe(true);
|
||||
});
|
||||
|
||||
it('refuses a run without a profile, with a profile it does not know, or with fields of another type', () => {
|
||||
expect(() => tourCreateRequestSchema.parse({ ...run, run_profile: null })).toThrow(/a run needs a run profile/);
|
||||
expect(tourCreateRequestSchema.safeParse({ ...run, run_profile: 'sprint' }).success).toBe(false);
|
||||
expect(() => tourCreateRequestSchema.parse({ ...run, max_hiking_difficulty: 2 })).toThrow(/a run has no hiking/);
|
||||
expect(() => tourCreateRequestSchema.parse({ ...run, winter_activity: 'snowshoe' })).toThrow(/a run has no winter/);
|
||||
expect(() => tourCreateRequestSchema.parse({ ...run, bike_profile: 'road' })).toThrow(/bike tour/);
|
||||
expect(() => tourCreateRequestSchema.parse({ ...run, boat_type: 'sup' })).toThrow(/paddle tour/);
|
||||
const overFerrata = { ...run, waypoints: [{ ...run.waypoints[0], fixed_leg: ferrata }, run.waypoints[1]] };
|
||||
expect(() => tourCreateRequestSchema.parse(overFerrata)).toThrow(/a run has no via ferrata/);
|
||||
});
|
||||
|
||||
it('keeps a profile and a pace to a run', () => {
|
||||
expect(() => tourCreateRequestSchema.parse({ ...baseRequest, run_profile: 'running' })).toThrow(/belongs to a run/);
|
||||
const bike = { ...baseRequest, tour_type: 'bike', bike_profile: 'road', run_pace_seconds_per_km: 300 };
|
||||
expect(() => tourCreateRequestSchema.parse(bike)).toThrow(/run_pace_seconds_per_km belongs to a run/);
|
||||
});
|
||||
|
||||
it('imports a GPX file as a run only with its profile, and a run profile only for one', () => {
|
||||
expect(tourGpxImportFieldsSchema.parse({ tour_type: 'run', run_profile: 'running' })).toMatchObject({
|
||||
tour_type: 'run',
|
||||
run_profile: 'running',
|
||||
});
|
||||
expect(tourGpxImportFieldsSchema.safeParse({ tour_type: 'run' }).success).toBe(false);
|
||||
const bike = { tour_type: 'bike', bike_profile: 'road', run_profile: 'running' };
|
||||
expect(tourGpxImportFieldsSchema.safeParse(bike).success).toBe(false);
|
||||
});
|
||||
|
||||
it('lists the profile and pace, and reads a list cached before they existed', () => {
|
||||
const listed = {
|
||||
place_id: 1,
|
||||
tour_type: 'run',
|
||||
distance: 8,
|
||||
elevation_gain: 40,
|
||||
elevation_loss: 40,
|
||||
duration: 48,
|
||||
difficulty: null,
|
||||
wanderer_ref: null,
|
||||
match_confidence: 1,
|
||||
max_hiking_difficulty: null,
|
||||
name: 'River loop',
|
||||
planned: false,
|
||||
caution: false,
|
||||
};
|
||||
const planned = { ...listed, run_profile: 'running', run_pace_seconds_per_km: 360 };
|
||||
expect(tourListItemSchema.parse(planned)).toMatchObject({ run_profile: 'running', run_pace_seconds_per_km: 360 });
|
||||
expect(tourListItemSchema.parse(listed).run_profile).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
portageSpeedKmhSchema,
|
||||
trackMarksSchema,
|
||||
} from './paddle-plan.schema';
|
||||
import { runPaceSecondsPerKmSchema } from './run-pace';
|
||||
import { tourPoiCategorySchema } from './tour-poi-category';
|
||||
import { tourOriginSchema, tourProvenanceSchema } from './tour-provenance.schema';
|
||||
|
||||
@@ -30,9 +31,10 @@ export type TourTypeKey = z.infer<typeof tourTypeKeySchema>;
|
||||
* are offered. `kayak` is the key the paddle tour has had in `tour_types` from
|
||||
* the start; the app calls it a paddle tour, and the boat is a field of its
|
||||
* own. A bike tour (BIK-01) names its profile the same way. `walk` is the city
|
||||
* walk (CW-01): stations joined on foot, without a hiking limit.
|
||||
* walk (CW-01): stations joined on foot, without a hiking limit. `run` is a
|
||||
* run (RUN-01), planned on foot with the runner's own pace.
|
||||
*/
|
||||
export const plannableTourTypeSchema = z.enum(['hike', 'walk', 'bike', 'kayak']);
|
||||
export const plannableTourTypeSchema = z.enum(['hike', 'walk', 'run', 'bike', 'kayak']);
|
||||
export type PlannableTourType = z.infer<typeof plannableTourTypeSchema>;
|
||||
|
||||
/**
|
||||
@@ -46,6 +48,16 @@ export const BIKE_PROFILES = ['touring', 'road', 'gravel', 'mtb'] as const;
|
||||
export const bikeProfileSchema = z.enum(BIKE_PROFILES);
|
||||
export type BikeProfile = z.infer<typeof bikeProfileSchema>;
|
||||
|
||||
/**
|
||||
* RUN-01: what a run is planned as, the one profile it is routed for. Running
|
||||
* keeps to runnable, mostly paved ways in towns, parks and along rivers;
|
||||
* trail running follows with RUN-02. A profile asks the router for ways, it
|
||||
* says nothing about whether one can be run.
|
||||
*/
|
||||
export const RUN_PROFILES = ['running'] as const;
|
||||
export const runProfileSchema = z.enum(RUN_PROFILES);
|
||||
export type RunProfile = z.infer<typeof runProfileSchema>;
|
||||
|
||||
/** PAD-01: the one boat a paddle tour is planned for. */
|
||||
export const paddleBoatTypeSchema = z.enum(['kayak', 'canoe', 'sup', 'other']);
|
||||
export type PaddleBoatType = z.infer<typeof paddleBoatTypeSchema>;
|
||||
@@ -177,6 +189,10 @@ export const tourSchema = z.object({
|
||||
bike_profile: bikeProfileSchema.nullable().optional(),
|
||||
/** HIK-01: a hike's winter label; null for none and for every other type. Absent in a list cached before it existed. */
|
||||
winter_activity: winterActivitySchema.nullable().optional(),
|
||||
/** RUN-01: a run's profile; null for every other type. Absent in a list cached before it existed. */
|
||||
run_profile: runProfileSchema.nullable().optional(),
|
||||
/** RUN-01: the pace a run is planned at, seconds per km; null while none is entered and for every other type. */
|
||||
run_pace_seconds_per_km: z.number().nullable().optional(),
|
||||
/** A paddle tour's boat and water; null for every other type. Absent in a list cached before they existed. */
|
||||
boat_type: paddleBoatTypeSchema.nullable().optional(),
|
||||
water_context: paddleWaterContextSchema.nullable().optional(),
|
||||
@@ -415,6 +431,10 @@ export const tourCreateRequestSchema = z
|
||||
bike_profile: bikeProfileSchema.nullable().optional(),
|
||||
/** HIK-01, a hike's only: its winter label, null to take it off; left out, an edit keeps the one it has. */
|
||||
winter_activity: winterActivitySchema.nullable().optional(),
|
||||
/** RUN-01, a run's only, and its one requirement. */
|
||||
run_profile: runProfileSchema.nullable().optional(),
|
||||
/** RUN-01, a run's only: the pace it is planned at, seconds per km; null while none is entered. */
|
||||
run_pace_seconds_per_km: runPaceSecondsPerKmSchema.nullable().optional(),
|
||||
boat_type: paddleBoatTypeSchema.nullable().optional(),
|
||||
water_context: paddleWaterContextSchema.nullable().optional(),
|
||||
paddle_speed_kmh: paddleSpeedKmhSchema.nullable().optional(),
|
||||
@@ -489,6 +509,15 @@ export type TourCreateInput = z.input<typeof tourCreateRequestSchema>;
|
||||
|
||||
type Issue = { path: Array<string | number>; message: string };
|
||||
|
||||
/** How a refusal names each type. */
|
||||
const TYPE_NAMED: Record<PlannableTourType, string> = {
|
||||
kayak: 'a paddle tour',
|
||||
bike: 'a bike tour',
|
||||
walk: 'a city walk',
|
||||
run: 'a run',
|
||||
hike: 'a hike',
|
||||
};
|
||||
|
||||
const PADDLE_FIELDS = [
|
||||
'boat_type',
|
||||
'water_context',
|
||||
@@ -499,8 +528,9 @@ const PADDLE_FIELDS = [
|
||||
|
||||
/**
|
||||
* What belongs to which type: a hike carries a routing limit and no boat; a
|
||||
* bike tour exactly one profile and nothing of a hike's or a paddler's; a
|
||||
* paddle tour exactly one boat and its water, and no hiking limit.
|
||||
* bike tour and a run exactly one profile each and nothing of a hike's or a
|
||||
* paddler's, a run also its pace; a paddle tour exactly one boat and its
|
||||
* water, and no hiking limit.
|
||||
*/
|
||||
function tourTypeIssues(value: {
|
||||
tour_type: PlannableTourType;
|
||||
@@ -508,6 +538,8 @@ function tourTypeIssues(value: {
|
||||
hiking_preferences?: HikingPreferences | null;
|
||||
bike_profile?: BikeProfile | null;
|
||||
winter_activity?: WinterActivity | null;
|
||||
run_profile?: RunProfile | null;
|
||||
run_pace_seconds_per_km?: number | null;
|
||||
boat_type?: PaddleBoatType | null;
|
||||
water_context?: PaddleWaterContext | null;
|
||||
paddle_speed_kmh?: number | null;
|
||||
@@ -523,7 +555,7 @@ function tourTypeIssues(value: {
|
||||
}): Issue[] {
|
||||
const issues: Issue[] = [];
|
||||
const type = value.tour_type;
|
||||
const named = { kayak: 'a paddle tour', bike: 'a bike tour', walk: 'a city walk', hike: 'a hike' }[type];
|
||||
const named = TYPE_NAMED[type];
|
||||
if (type === 'kayak') {
|
||||
if (value.boat_type == null) issues.push({ path: ['boat_type'], message: 'a paddle tour needs a boat type' });
|
||||
if (value.water_context == null)
|
||||
@@ -548,13 +580,14 @@ function tourTypeIssues(value: {
|
||||
issues.push({ path: ['bike_profile'], message: 'a bike tour needs a bike profile' });
|
||||
if (type !== 'bike' && value.bike_profile != null)
|
||||
issues.push({ path: ['bike_profile'], message: 'bike_profile belongs to a bike tour' });
|
||||
issues.push(...runIssues(value));
|
||||
// A portage and a lock are a paddler's; a via ferrata is climbed, never ridden.
|
||||
(value.waypoints ?? []).forEach((point, index) => {
|
||||
if (type !== 'kayak' && point.fixed_leg?.kind === 'portage')
|
||||
issues.push({ path: ['waypoints', index, 'fixed_leg'], message: 'a portage belongs to a paddle tour' });
|
||||
if (type !== 'kayak' && point.lock != null)
|
||||
issues.push({ path: ['waypoints', index, 'lock'], message: 'a lock belongs to a paddle tour' });
|
||||
if ((type === 'bike' || type === 'walk') && point.fixed_leg?.kind === 'ferrata')
|
||||
if ((type === 'bike' || type === 'walk' || type === 'run') && point.fixed_leg?.kind === 'ferrata')
|
||||
issues.push({ path: ['waypoints', index, 'fixed_leg'], message: `${named} has no via ferrata` });
|
||||
// A stay, an importance and a protection are a city walk's stations'.
|
||||
if (type !== 'walk' && (point.stay_minutes != null || point.importance != null || point.protected === true))
|
||||
@@ -563,6 +596,19 @@ function tourTypeIssues(value: {
|
||||
return issues;
|
||||
}
|
||||
|
||||
/** RUN-01: a run names its profile; its profile and pace belong to no other type. */
|
||||
function runIssues(value: {
|
||||
tour_type: PlannableTourType;
|
||||
run_profile?: RunProfile | null;
|
||||
run_pace_seconds_per_km?: number | null;
|
||||
}): Issue[] {
|
||||
if (value.tour_type === 'run')
|
||||
return value.run_profile == null ? [{ path: ['run_profile'], message: 'a run needs a run profile' }] : [];
|
||||
return (['run_profile', 'run_pace_seconds_per_km'] as const)
|
||||
.filter((field) => value[field] != null)
|
||||
.map((field) => ({ path: [field], message: `${field} belongs to a run` }));
|
||||
}
|
||||
|
||||
export const tourCreateResponseSchema = z.object({
|
||||
tour: tourListItemSchema,
|
||||
waypoints: z.array(tourWaypointSchema),
|
||||
|
||||
Reference in New Issue
Block a user