]> gitweb.michael.orlitzky.com - dead/census-tools.git/blob - www/maps/maps/templates/location/index.mako
Added the distances section to the home page.
[dead/census-tools.git] / www / maps / maps / templates / location / index.mako
1 <%inherit file="/base.mako"/>\
2
3 <%def name="scripts()">
4 </%def>
5
6 <h1>Generate KML Routes</h1>
7
8 <form method="post" action="location/route" enctype="multipart/form-data">
9 <fieldset>
10 <legend>Producer/Consumer Upload</legend>
11
12 <label for="producers">Producers File</label>
13 <input type="file" id="producers" name="producers" />
14
15 <label for="consumers">Consumers File</label>
16 <input type="file" id="consumers" name="consumers" />
17
18 <input class="submit" type="submit" value="Route" />
19 </fieldset>
20 </form>
21
22
23 <h2>File Format</h2>
24 <p>
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
29 double-quoted.
30 </p>
31
32 <p>
33 The <em>latitude</em> and <em>longitude</em> fields are technically
34 optional&mdash;in their absence, the name of the producer/consumer
35 will be used as the source or destination location.
36 </p>
37
38 <table class="csv" summary="Example CSV file">
39 <caption>producers-example.csv</caption>
40 <tr>
41 <th>name</th>
42 <th>latitude</th>
43 <th>longitude</th>
44 </tr>
45
46 <tr>
47 <td><q>Jack O'Neill</q></td>
48 <td>35.02135823</td>
49 <td>-76.20178512</td>
50 </tr>
51
52 <tr>
53 <td><q>Daniel Jackson</q></td>
54 <td>38.286422</td>
55 <td>-79.327437</td>
56 </tr>
57
58 <tr>
59 <td><q>Samantha Carter</q></td>
60 <td>35.9974632</td>
61 <td>-80.000000</td>
62 </tr>
63
64 <tr>
65 <td><q>Teal'c</q></td>
66 <td>45.20434632</td>
67 <td>-72.07234637</td>
68 </tr>
69
70 <tr>
71 <td><q>George Hammond</q></td>
72 <td>36.536257346</td>
73 <td>-73.263458</td>
74 </tr>
75
76 </table>
77
78
79 <h1>Generate KML Distances</h1>
80
81 <form method="post" action="location/distance" enctype="multipart/form-data">
82 <fieldset>
83 <legend>Producer/Consumer Upload</legend>
84
85 <label for="producers">Producers File</label>
86 <input type="file" id="producers" name="producers" />
87
88 <label for="consumers">Consumers File</label>
89 <input type="file" id="consumers" name="consumers" />
90
91 <input class="submit" type="submit" value="Get Distances" />
92 </fieldset>
93 </form>
94
95
96 <h2>File Format</h2>
97
98 <p>
99 Same as above.
100 </p>