baby steps for routing
This commit is contained in:
parent
5998a56e98
commit
9d0586288d
7 changed files with 152 additions and 41 deletions
16
web/templates/routing.html
Normal file
16
web/templates/routing.html
Normal 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue