1 <%inherit file="/base.mako"/>\
3 <%def name="scripts()">
6 <h1>Generate KML Routes</h1>
8 <form method="post" action="location/route" enctype="multipart/form-data">
10 <legend>Producer/Consumer Upload</legend>
12 <label for="producers">Producers File</label>
13 <input type="file" id="producers" name="producers" />
15 <label for="consumers">Consumers File</label>
16 <input type="file" id="consumers" name="consumers" />
18 <input class="submit" type="submit" value="Route" />
25 Both uploaded files should have the same format. They should be
26 comma-delimited, with the first row containing three column names:
27 <em>name</em>, <em>latitude</em>, and <em>longitude</em>. The
28 <em>name</em> column, being of type string, should have its values
33 The <em>latitude</em> and <em>longitude</em> fields are technically
34 optional—in their absence, the name of the producer/consumer
35 will be used as the source or destination location.
38 <table class="csv" summary="Example CSV file">
39 <caption>producers-example.csv</caption>
47 <td><q>Jack O'Neill</q></td>
53 <td><q>Daniel Jackson</q></td>
59 <td><q>Samantha Carter</q></td>
65 <td><q>Teal'c</q></td>
71 <td><q>George Hammond</q></td>
79 <h1>Generate KML Distances</h1>
81 <form method="post" action="location/distance" enctype="multipart/form-data">
83 <legend>Producer/Consumer Upload</legend>
85 <label for="producers">Producers File</label>
86 <input type="file" id="producers" name="producers" />
88 <label for="consumers">Consumers File</label>
89 <input type="file" id="consumers" name="consumers" />
91 <input class="submit" type="submit" value="Get Distances" />