{% extends 'base.html.twig' %} {% block title %}{{ 'display.stats'|trans }}- {{ stats.zone }} {{ stats.name }} {% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %}

{{ 'display.stats'|trans }} - {{ stats.zone }} {{ stats.name }} - {{ stats.completionPercent }}% complété

{% if stats.population %}
Population : {{ stats.population|number_format(0, '.', ' ') }}
1 lieu pour {% set ratio = (stats.population and stats.places|length > 0) ? (stats.population / stats.places|length)|round(0, 'ceil') : '?' %} {{ ratio|number_format(0, '.', ' ') }} habitants
{{ stats.getAvecNote() }} / {{ stats.places|length }} lieux avec note
{% if stats.budgetAnnuel %}
Budget annuel : {{ stats.budgetAnnuel|number_format(0, '.', ' ') }} €
Budget par habitant : {% if stats.population > 0 %} {{ (stats.budgetAnnuel / stats.population)|number_format(0, '.', ' ') }} € {% else %} ? {% endif %}
{% endif %} {% endif %}
{{ stats.getCompletionPercent() }} % complété sur les critères donnés.
{{ stats.places | length}} lieux dans la zone.
{{ stats.getAvecHoraires() }} lieux avec horaires.
{{ stats.getAvecAdresse() }} lieux avec adresse.
{{ stats.getAvecSite() }} lieux avec site web renseigné.
{{ stats.getAvecAccessibilite() }} lieux avec accessibilité PMR renseignée.
{{ stats.getAvecNote() }} lieux avec note renseignée.
Chargement de la carte...
Fréquence des mises à jour par trimestre pour {{stats.name}}
{% include 'admin/stats_history.html.twig' with {stat: stats} %}

Tableau des {{ stats.places |length }} lieux

{% include 'admin/stats/table-head.html.twig' %} {% for commerce in stats.places %} {% include 'admin/stats/row.html.twig' %} {% endfor %}

Podium des contributeurs OSM de cette ville

{% for row in podium_local %} {% else %} {% endfor %}
# Utilisateur OSM Nombre de lieux Score de complétion moyen Score de complétion pondéré Score pondéré normalisé (0-100)
{{ loop.index }} {{ row.osm_user }} {{ row.nb }} {% if row.completion_moyen is not null %} {{ row.completion_moyen }} % {% else %} N/A {% endif %} {% if row.completion_pondere is not null %} {{ row.completion_pondere }} {% else %} N/A {% endif %} {% if row.completion_pondere_normalisee is not null %} {{ row.completion_pondere_normalisee }} {% else %} N/A {% endif %}
Aucun contributeur trouvé pour cette ville.
{#

Requête Overpass

            {{overpass}}
    
#}

Comment est calculé le score de complétion ?

{% set followup_icons = { 'fire_hydrant': 'bi-droplet', 'charging_station': 'bi-lightning-charge', 'toilets': 'bi-toilet', 'bus_stop': 'bi-bus-front', 'defibrillator': 'bi-heart-pulse', 'camera': 'bi-camera-video', 'recycling': 'bi-recycle', 'substation': 'bi-plug', 'laboratory': 'bi-beaker', 'school': 'bi-mortarboard', 'places': 'bi-geo-alt' } %}
{% for type, data in latestFollowups %} {% if data.count or data.completion %}

{{ type_labels[type]|default(type|capitalize) }}
N = {{ data.count ? data.count.getMeasure() : '?' }}
Compl. = {{ data.completion ? data.completion.getMeasure() : '?' }}%
{% endif %} {% endfor %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}