{{ header|raw }}
{{ pageTranslations.fr.title|default("Mon circuit") }} {{ mode }}
Carte
  • Détails du circuit
  • - Distance: {{ distance }} - Mode de déplacement: {{ translations.fr[mode] }}
    - Durée moyenne: {{ duration }} - Départ: {{ origin.address }} {{ origin.postalCode }} {{ origin.city.name }}
    - Arrivée: {{ destination.address }} {{ destination.postalCode }} {{ destination.city.name }}
    {% if pageTranslations and pageTranslations.fr.summary %}
  • Description
  • {{ pageTranslations.fr.summary|raw }}
    {% endif %}
    {% set labels = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'X', 'Y', 'Z'] %} {% for key, pointOfInterest in pointOfInterests %} {% set isWaypoint = pointOfInterest is waypoint %}
    {{ labels[key] }}
    - {{ pointOfInterest.name }}
    {% if (not loop.last or (loop.last and isClosed)) and isPersonalKey %}
    Carte
    {% endif %} {% if not isWaypoint %}
    {{ pointOfInterest.address|default('Non renseigné') }} {{ pointOfInterest.postalCode }} {% if pointOfInterest.city %} {{ pointOfInterest.city.name }} {% endif %}
    {% if pointOfInterest.mail %}
    {{ pointOfInterest.mail|default('Non renseigné') }}
    {% endif %} {% if pointOfInterest.phone %}
    {{ pointOfInterest.phone|default('Non renseigné') }}
    {% endif %} {% if pointOfInterest.webSite %}
    {{ pointOfInterest.webSite|default('Non renseigné') }}
    {% endif %}
    {% endif %} {% if pointOfInterest.translations[locale] is defined and pointOfInterest.translations[locale].description %}
  • Description
  • {{ pointOfInterest.translations[locale].description }}
    {% elseif pointOfInterest.translations[defaultLocale] is defined and pointOfInterest.translations[defaultLocale].description %}
  • Description
  • {{ pointOfInterest.translations[defaultLocale].description }}
    {% endif %} {% if pointOfInterest.documents is not empty and not isWaypoint %} {% endif %} {% if pointOfInterest.prices is not empty and not isWaypoint %}
  • {{ translations[locale].prices }}
  • {% for index, price in pointOfInterest.prices %} {% endfor %}
    {% if price.translations[locale] is defined and price.translations[locale].label %} {{ price.translations[locale].label }} {% else %} {{ price.translations[defaultLocale].label|default("Tarif: " ~ index) }} {% endif %} {% if price.value %} {{ price.value|number_format(2) }} € {% elseif price.max or price.min %} {% if price.min == price.max %} {{ price.min|number_format(2) }}€ {% else %} {{ translations[locale].from }} {{ price.min|number_format(2) }}€ {{ translations[locale].to }} {{ price.max|number_format(2) }}€ {% endif %} {% endif %} {% if price.translations[locale] is defined and price.translations[locale].comment %} {{ price.translations[locale].comment }} {% else %} {{ price.translations[defaultLocale].comment|default("") }} {% endif %}
    {% endif %} {% if pointOfInterest.schedules is not empty and not isWaypoint %} {% for schedule in pointOfInterest.schedules %} {% set scheduleFounded = false %} {% if date(schedule.validateFrom) < date() and date(schedule.validateUntil) > date() %} {% set scheduleFounded = true %}
  • {{ translations[locale].schedules|default('') }}
  • {% if schedule.translations[locale] is defined and schedule.translations[locale].label %} {{ schedule.translations[locale].label }} {% elseif schedule.translations[defaultLocale].label %} {{ schedule.translations[defaultLocale].label }} {% endif %} {% if schedule.translations[locale] is defined and schedule.translations[locale].comment %} {{ schedule.translations[locale].comment }} {% elseif schedule.translations[defaultLocale].comment %} {{ schedule.translations[defaultLocale].comment }} {% endif %}
    {{ translations[locale].from }} {{ schedule.validateFrom|date('d-m-Y') }} {{ translations[locale].toSchedule }} {{ schedule.validateUntil|date('d-m-Y') }}
    {% if schedule.translations[locale] is defined and schedule.translations[locale].comment %}

    {{ schedule.translations[locale].comment }}

    {% elseif schedule.translations[defaultLocale].comment %}

    {{ schedule.translations[defaultLocale].comment }}

    {% endif %} {% if schedule.scheduleDays is not empty %} {% for scheduleDay in schedule.scheduleDays|filter(scheduleDay => scheduleDay.day == 1) %} {% endfor %} {% for scheduleDay in schedule.scheduleDays|filter(scheduleDay => scheduleDay.day == 2) %} {% endfor %} {% for scheduleDay in schedule.scheduleDays|filter(scheduleDay => scheduleDay.day == 3) %} {% endfor %} {% for scheduleDay in schedule.scheduleDays|filter(scheduleDay => scheduleDay.day == 4) %} {% endfor %} {% for scheduleDay in schedule.scheduleDays|filter(scheduleDay => scheduleDay.day == 5) %} {% endfor %} {% for scheduleDay in schedule.scheduleDays|filter(scheduleDay => scheduleDay.day == 6) %} {% endfor %} {% for scheduleDay in schedule.scheduleDays|filter(scheduleDay => scheduleDay.day == 0) %} {% endfor %}
    {{ translations[locale].monday }}
    {{ scheduleDay.isOpen ? translations[locale].open : translations[locale].close }}
    {% if scheduleDay.isOpen %} {% for hour in scheduleDay.hourLists %} {{ translations[locale].from }} {{ hour.openAt|date('H:i') }}h {{ translations[locale].to }} {{ hour.closeAt|date('H:i') }}h {% endfor %} {% endif %}
    {{ translations[locale].tuesday }}
    {{ scheduleDay.isOpen ? translations[locale].open : translations[locale].close }}
    {% if scheduleDay.isOpen %} {% for hour in scheduleDay.hourLists %} {{ translations[locale].from }} {{ hour.openAt|date('H:i') }}h {{ translations[locale].to }} {{ hour.closeAt|date('H:i') }}h {% endfor %} {% endif %}
    {{ translations[locale].wednesday }}
    {{ scheduleDay.isOpen ? translations[locale].open : translations[locale].close }}
    {% if scheduleDay.isOpen %} {% for hour in scheduleDay.hourLists %} {{ translations[locale].from }} {{ hour.openAt|date('H:i') }}h {{ translations[locale].to }} {{ hour.closeAt|date('H:i') }}h {% endfor %} {% endif %}
    {{ translations[locale].thursday }}
    {{ scheduleDay.isOpen ? translations[locale].open : translations[locale].close }}
    {% if scheduleDay.isOpen %} {% for hour in scheduleDay.hourLists %} {{ translations[locale].from }} {{ hour.openAt|date('H:i') }}h {{ translations[locale].to }} {{ hour.closeAt|date('H:i') }}h {% endfor %} {% endif %}
    {{ translations[locale].friday }}
    {{ scheduleDay.isOpen ? translations[locale].open : translations[locale].close }}
    {% if scheduleDay.isOpen %} {% for hour in scheduleDay.hourLists %} {{ translations[locale].from }} {{ hour.openAt|date('H:i') }}h {{ translations[locale].to }} {{ hour.closeAt|date('H:i') }}h {% endfor %} {% endif %}
    {{ translations[locale].saturday }}
    {{ scheduleDay.isOpen ? translations[locale].open : translations[locale].close }}
    {% if scheduleDay.isOpen %} {% for hour in scheduleDay.hourLists %} {{ translations[locale].from }} {{ hour.openAt|date('H:i') }}h {{ translations[locale].to }} {{ hour.closeAt|date('H:i') }}h {% endfor %} {% endif %}
    {{ translations[locale].sunday }}
    {{ scheduleDay.isOpen ? translations[locale].open : translations[locale].close }}
    {% if scheduleDay.isOpen %} {% for hour in scheduleDay.hourLists %} {{ translations[locale].from }} {{ hour.openAt|date('H:i') }}h {{ translations[locale].to }} {{ hour.closeAt|date('H:i') }}h {% endfor %} {% endif %}
    {% endif %}
    {% endif %} {% endfor %} {% endif %} {% if pointOfInterest.attributes is not empty and not isWaypoint %} {% set attributesByCategory = {} %} {% for attribute in pointOfInterest.attributes %} {% if attributesByCategory[attribute.category.translations.fr.name] is defined %} {% set attributesByCategory = attributesByCategory|merge({ (attribute.category.translations.fr.name): attributesByCategory[attribute.category.translations.fr.name]|merge([(attribute.translations.fr.name)]) }) %} {% else %} {% set attributesByCategory = attributesByCategory|merge({(attribute.category.translations.fr.name): []}) %} {% set attributesByCategory = attributesByCategory|merge({ (attribute.category.translations.fr.name): [(attribute.translations.fr.name)] }) %} {% endif %} {% endfor %} {% for key, category in attributesByCategory %}
  • {{ key }}
  • {% for value in category %} {% if loop.index is odd %} {% endif %} {% if loop.index is even or loop.last %} {% endif %} {% endfor %}
    task-alt {{ value }}
    {% endfor %} {% endif %} {% if not loop.last or (loop.last and isClosed) %}
  • Détails du trajet
  • {{ translations[locale].departure_from }} {{ legs[key]['start_address'] }}
    {{ translations[locale].arrive_at }} {{ legs[key]['end_address'] }}
    {{ legs[key]['duration']['text'] }} ({{ legs[key]['distance']['text'] }})
    {{ legs[key]['start_address'] }}
    {% for step in legs[key]["steps"] %}
    {{ step[ {{ step["html_instructions"]|raw }}
    {{ step["duration"]["text"] }} ({{ step["distance"]["text"] }})
    {% endfor %}
    {{ legs[key]['end_address'] }}
    {% endif %}
    {% endfor %}