フェリー・旅客船航路情報フォーマット簡易作成ツール 出力結果

{%- if convert_log %}

フォーマット簡易作成ツール実行ログ

実行ログ log.txt の内容は以下の通りです。

{{ convert_log }}

GTFS検証結果

{%- if system_error %}

GTFS変換・出力検証でエラーが発生しました

{{system_error}}
{%- else %} {%- if report %}

概要

{%- with summary = report.summary %}

定義されている事業者

    {%- for agency in summary.agencies %}
  • {{ agency.name }}
    • ウェブサイトURL: {{ agency.url }}
    • 電話番号: {{ agency.phone }}
    • Emil: {{ agency.email }}
  • {%- endfor %}

提供情報

{%- with feedInfo = summary.feedInfo %}
  • 提供組織名: {{ feedInfo.publisherName }}
  • 提供組織URL: {{ feedInfo.publisherUrl }}
  • 提供組織Email: {{ feedInfo.feedEmail }}
  • 提供言語: {{ feedInfo.feedLanguage }}
  • 有効期間: {{ feedInfo.feedServiceWindowStart}} ~ {{ feedInfo.feedServiceWindowEnd }}
{%- endwith %}

GTFSファイル一覧

    {%- for i in summary.files %}
  1. {{ i }}
  2. {%- endfor %}

定義されている情報の数

{%- with counts = summary.counts %}
  • 事業者: {{ counts.Agencies }}
  • 航路: {{ counts.Routes }}
  • のりば: {{ counts.Stops }}
  • 航路軌跡: {{ counts.Shapes }}
  • 便: {{ counts.Trips }}
{%- endwith %}
{%- endwith %}

検証結果

エラー・警告一覧表の csvRowNumber は、変換元の excel ファイルでの行番号ではなく、出力されたGTFSファイルのCSVでの行番号です。

{%- for notice in report.notices %} {%- if not notice.info.ignore %}

{% if notice.info.severity == "ERROR" %}🔴 エラー {%- elif notice.info.severity == "WARNING" %}🟡 警告 {%- elif notice.info.severity == "INFO" %}⚪ 情報 {%- else %}XX {{ notice.info.severity }}{% endif %}: {{ notice.info.description }}

{%- if notice.info.howto_fix %} {%- endif %} {%- if notice.sampleNotices %} {%- for k in notice.sampleNotices[0].keys() %} {%- endfor %} {%- for i in notice.sampleNotices %} {%- for k in notice.sampleNotices[0].keys() %} {%- endfor %} {%- endfor %}
{{ k }}
{{ i[k] | regex_replace(",", ",") }}
{%- endif %}
{%- endif %}{# notice.ignore -#} {%- endfor %}{# report.notices -#} {%- endif %}{# not system_error -#} {%- endif %}{# report -#} {%- else %} {# not convert_log -#}

フォーマット簡易作成ツール実行ログ

実行ログ log.txt が見つかりません。フォーマット簡易作成ツールの実行に失敗しています。

{%- endif %}