baby steps for routing

This commit is contained in:
Nicholas Orlowsky 2026-06-25 23:00:50 -04:00
parent 5998a56e98
commit 9d0586288d
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B
7 changed files with 152 additions and 41 deletions

View file

@ -0,0 +1,16 @@
{% for trip in trips %}
<div style="border-width: 1px; border-color: black; border-style: dotted; margin: 10px;">
{% for step in trip %}
{% match step %}
{% when RouteStep::Walk(walk) %}
<p>Walk {{ walk.dist }}m to {{ walk.dest }}</p>
{% when RouteStep::Transit(transit) %}
<p>Ride {{transit.route}} to {{ transit.platform }}</p>
{% when RouteStep::Origin %}
<p>begin at origin</p>
{% when RouteStep::Destination %}
<p>arrive at destination</p>
{% endmatch %}
{% endfor %}
</div>
{% endfor %}