Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Contents of /trunk/doc/html/output.html
Parent Directory
|
Revision Log
Revision 1267 -
(show annotations)
(download)
(as text)
Tue Mar 19 19:12:55 2013 UTC (11 years, 11 months ago) by amb
File MIME type: text/html
File size: 16350 byte(s)
Tue Mar 19 19:12:55 2013 UTC (11 years, 11 months ago) by amb
File MIME type: text/html
File size: 16350 byte(s)
Remove e-mail addresses and replace with links to website.
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
2 | <HTML> |
3 | |
4 | <HEAD> |
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
6 | |
7 | <title>Routino : Output</title> |
8 | |
9 | <!-- |
10 | Routino documentation - output |
11 | |
12 | Part of the Routino routing software. |
13 | |
14 | This file Copyright 2008-2013 Andrew M. Bishop |
15 | |
16 | This program is free software: you can redistribute it and/or modify |
17 | it under the terms of the GNU Affero General Public License as published by |
18 | the Free Software Foundation, either version 3 of the License, or |
19 | (at your option) any later version. |
20 | |
21 | This program is distributed in the hope that it will be useful, |
22 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
24 | GNU Affero General Public License for more details. |
25 | |
26 | You should have received a copy of the GNU Affero General Public License |
27 | along with this program. If not, see http://www.gnu.org/licenses/. |
28 | --> |
29 | |
30 | <link href="style.css" type="text/css" rel="stylesheet"> |
31 | </HEAD> |
32 | |
33 | <BODY> |
34 | |
35 | <!-- Header Start --> |
36 | |
37 | <div class="header" align="center"> |
38 | |
39 | <h1>Routino : Output</h1> |
40 | |
41 | <hr> |
42 | </div> |
43 | |
44 | <!-- Header End --> |
45 | |
46 | <!-- Content Start --> |
47 | |
48 | <div class="content"> |
49 | |
50 | <h2><a name="H_1_1"></a>Router Output</h2> |
51 | |
52 | There are three different formats of output from the router, HTML, |
53 | <a class="ext" title="GPX format" href="http://www.topografix.com/gpx.asp">GPX (GPS eXchange) XML format</a> |
54 | and plain text with a total of five possible output files: |
55 | <ul> |
56 | <li>HTML route instructions for each interesting junction. |
57 | <li>GPX track file containing every node. |
58 | <li>GPX route file with waypoints at interesting junctions. |
59 | <li>Plain text description with the interesting junctions. |
60 | <li>Plain text file with every node. |
61 | </ul> |
62 | |
63 | The "interesting junctions" referred to above are junctions where the route |
64 | changes to a different type of highway, more than two highways of the same type |
65 | meet, or where the route meets but does not take a more major highway. When the |
66 | route follows a major road this definition eliminates all junctions with minor |
67 | roads. |
68 | |
69 | <p> |
70 | |
71 | The output files are written to the current directory and are named depending on |
72 | the selection of shortest or quickest route. For the shortest route the file |
73 | names are "shortest.html", "shortest-track.gpx", "shortest-route.gpx", |
74 | "shortest.txt" and "shortest-all.txt", for the quickest route the names are |
75 | "quickest.html", "quickest-track.gpx", "quickest-route.gpx", "quickest.txt" and |
76 | "quickest-all.txt". |
77 | |
78 | <p> |
79 | |
80 | The HTML file and GPX files are written out according to the selected language |
81 | using the translations contained in the translations.xml configuration file. |
82 | The text files contains untranslated header lines (in English) but the data is |
83 | translated. |
84 | |
85 | <!-- For reference the examples were produced from the following URL: |
86 | http://www.routino.org/uk/router.html?transport=motorcar;lon1=-0.12790;lat1=51.52468;lon2=-0.10365;lat2=51.47824 --> |
87 | |
88 | <h3><a name="H_1_1_1" title="HTML file"></a>HTML Route Instructions</h3> |
89 | |
90 | The HTML route instructions file contains one line for the description of each |
91 | of the interesting junctions in the route and one line for each of the highways |
92 | that connect them. The coordinates are also included in the file but are not |
93 | visible because of the style definitions. |
94 | |
95 | <p> |
96 | |
97 | An example HTML file output is below (some parts are missing, for example the |
98 | style definitions): |
99 | |
100 | <pre class="boxed"> |
101 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
102 | <HTML> |
103 | <!-- Creator : Routino - http://www.routino.org/ --> |
104 | <!-- Source : Based on OpenStreetMap data from http://www.openstreetmap.org/ --> |
105 | <!-- License : http://www.openstreetmap.org/copyright --> |
106 | <HEAD> |
107 | <TITLE>Shortest Route</TITLE> |
108 | ... |
109 | </HEAD> |
110 | <BODY> |
111 | <H1>Shortest Route</H1> |
112 | <table> |
113 | <tr class='c'><td class='l'>1:<td class='r'>51.524658 -0.127877 |
114 | <tr class='n'><td class='l'>Start:<td class='r'>At <span class='w'>Waypoint</span>, head <span class='b'>South-East</span> |
115 | <tr class='s'><td class='l'>Follow:<td class='r'><span class='h'>Woburn Place (A4200)</span> for <span class='d'>0.251 km, 0.3 min</span> [<span class='j'>0.3 km, 0 minutes</span>] |
116 | <tr class='c'><td class='l'>2:<td class='r'>51.522811 -0.125781 |
117 | <tr class='n'><td class='l'>At:<td class='r'>Junction, go <span class='t'>Straight on</span> heading <span class='b'>South-East</span> |
118 | <tr class='s'><td class='l'>Follow:<td class='r'><span class='h'>Russell Square (A4200)</span> for <span class='d'>0.186 km, 0.2 min</span> [<span class='j'>0.4 km, 1 minutes</span>] |
119 | <tr class='c'><td class='l'>3:<td class='r'>51.521482 -0.124123 |
120 | <tr class='n'><td class='l'>At:<td class='r'>Junction, go <span class='t'>Straight on</span> heading <span class='b'>South-East</span> |
121 | <tr class='s'><td class='l'>Follow:<td class='r'><span class='h'>Southampton Row (A4200)</span> for <span class='d'>0.351 km, 0.4 min</span> [<span class='j'>0.8 km, 1 minutes</span>] |
122 | ... |
123 | <tr class='c'><td class='l'>21:<td class='r'>51.477678 -0.106792 |
124 | <tr class='n'><td class='l'>At:<td class='r'>Junction, go <span class='t'>Slight left</span> heading <span class='b'>South-East</span> |
125 | <tr class='s'><td class='l'>Follow:<td class='r'><span class='h'>Vassall Road</span> for <span class='d'>0.138 km, 0.2 min</span> [<span class='j'>6.3 km, 6 minutes</span>] |
126 | <tr class='c'><td class='l'>22:<td class='r'>51.478015 -0.104870 |
127 | <tr class='n'><td class='l'>At:<td class='r'>Junction, go <span class='t'>Straight on</span> heading <span class='b'>East</span> |
128 | <tr class='s'><td class='l'>Follow:<td class='r'><span class='h'>Vassall Road</span> for <span class='d'>0.087 km, 0.1 min</span> [<span class='j'>6.4 km, 6 minutes</span>] |
129 | <tr class='c'><td class='l'>23:<td class='r'>51.478244 -0.103651 |
130 | <tr class='n'><td class='l'>Stop:<td class='r'>At <span class='w'>Waypoint</span> |
131 | <tr class='t'><td class='l'>Total:<td class='r'><span class='j'>6.4 km, 6 minutes</span> |
132 | </table> |
133 | </BODY> |
134 | </HTML> |
135 | </pre> |
136 | |
137 | |
138 | <h3><a name="H_1_1_2" title="GPX track file"></a>GPX Track File</h3> |
139 | |
140 | The GPX track file contains a track with all of the individual nodes that the |
141 | route passes through. |
142 | |
143 | <p> |
144 | |
145 | An example GPX track file output is below: |
146 | |
147 | <pre class="boxed"> |
148 | <?xml version="1.0" encoding="UTF-8"?> |
149 | <gpx version="1.1" creator="Routino" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"> |
150 | <metadata> |
151 | <desc>Creator : Routino - http://www.routino.org/</desc> |
152 | <copyright author="Based on OpenStreetMap data from http://www.openstreetmap.org/"> |
153 | <license>http://www.openstreetmap.org/copyright</license> |
154 | </copyright> |
155 | </metadata> |
156 | <trk> |
157 | <name>Shortest route</name> |
158 | <desc>Shortest route between 'start' and 'finish' waypoints</desc> |
159 | <trkpt lat="51.524658" lon="-0.127877"/> |
160 | <trkpt lat="51.523768" lon="-0.126918"/> |
161 | <trkpt lat="51.522811" lon="-0.125781"/> |
162 | ... |
163 | <trkpt lat="51.478015" lon="-0.104870"/> |
164 | <trkpt lat="51.478127" lon="-0.104174"/> |
165 | <trkpt lat="51.478244" lon="-0.103651"/> |
166 | </trkseg> |
167 | </trk> |
168 | </gpx> |
169 | </pre> |
170 | |
171 | |
172 | <h3><a name="H_1_1_3" title="GPX route file"></a>GPX Route File</h3> |
173 | |
174 | The GPX route file contains a route (ordered set of waypoints) with all of the |
175 | interesting junctions that the route passes through and a description of the |
176 | route to take from that point. |
177 | |
178 | <p> |
179 | |
180 | An example GPX route file output is below: |
181 | |
182 | <pre class="boxed"> |
183 | <?xml version="1.0" encoding="UTF-8"?> |
184 | <gpx version="1.1" creator="Routino" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"> |
185 | <metadata> |
186 | <desc>Creator : Routino - http://www.routino.org/</desc> |
187 | <copyright author="Based on OpenStreetMap data from http://www.openstreetmap.org/"> |
188 | <license>http://www.openstreetmap.org/copyright</license> |
189 | </copyright> |
190 | </metadata> |
191 | <rte> |
192 | <name>Shortest route</name> |
193 | <desc>Shortest route between 'start' and 'finish' waypoints</desc> |
194 | <rtept lat="51.524658" lon="-0.127877"> |
195 | <name>START</name> |
196 | <desc>South-East on 'Woburn Place (A4200)' for 0.251 km, 0.3 min</desc> |
197 | </rtept> |
198 | <rtept lat="51.522811" lon="-0.125781"> |
199 | <name>TRIP001</name> |
200 | <desc>South-East on 'Russell Square (A4200)' for 0.186 km, 0.2 min</desc> |
201 | </rtept> |
202 | <rtept lat="51.521482" lon="-0.124123"> |
203 | <name>TRIP002</name> |
204 | <desc>South-East on 'Southampton Row (A4200)' for 0.351 km, 0.4 min</desc> |
205 | </rtept> |
206 | ... |
207 | <rtept lat="51.477678" lon="-0.106792"> |
208 | <name>TRIP020</name> |
209 | <desc>South-East on 'Vassall Road' for 0.138 km, 0.2 min</desc> |
210 | </rtept> |
211 | <rtept lat="51.478015" lon="-0.104870"> |
212 | <name>TRIP021</name> |
213 | <desc>East on 'Vassall Road' for 0.087 km, 0.1 min</desc> |
214 | </rtept> |
215 | <rtept lat="51.478244" lon="-0.103651"> |
216 | <name>FINISH</name> |
217 | <desc>Total Journey 6.4 km, 6 minutes</desc> |
218 | </rtept> |
219 | </rte> |
220 | </gpx> |
221 | </pre> |
222 | |
223 | |
224 | <h3><a name="H_1_1_4" title="Text file"></a>Text File</h3> |
225 | |
226 | The text file format contains one entry for all of the interesting junctions in |
227 | the route and is intended to be easy to interpret, for example for creating |
228 | other output formats. |
229 | |
230 | <p> |
231 | |
232 | An example text file output is below: |
233 | |
234 | <pre class="boxed"> |
235 | # Creator : Routino - http://www.routino.org/ |
236 | # Source : Based on OpenStreetMap data from http://www.openstreetmap.org/ |
237 | # License : http://www.openstreetmap.org/copyright |
238 | # |
239 | #Latitude Longitude Section Section Total Total Point Turn Bearing Highway |
240 | # Distance Duration Distance Duration Type |
241 | 51.524658 -0.127877 0.000 km 0.0 min 0.0 km 0 min Waypt +3 Woburn Place (A4200) |
242 | 51.522811 -0.125781 0.251 km 0.3 min 0.3 km 0 min Junct +0 +3 Russell Square (A4200) |
243 | 51.521482 -0.124123 0.186 km 0.2 min 0.4 km 1 min Junct +0 +3 Southampton Row (A4200) |
244 | ... |
245 | 51.477678 -0.106792 0.204 km 0.2 min 6.1 km 5 min Junct +0 +3 Vassall Road |
246 | 51.478015 -0.104870 0.138 km 0.2 min 6.3 km 6 min Junct +0 +2 Vassall Road |
247 | 51.478244 -0.103651 0.087 km 0.1 min 6.4 km 6 min Waypt |
248 | </pre> |
249 | |
250 | <p> |
251 | |
252 | The text file output contains a header (indicated by the lines starting with |
253 | '#') and then one line for each waypoint or junction. Each line contains the |
254 | information for the current node and the next segment to be followed. |
255 | |
256 | For each of the lines the individual fields contain the following: |
257 | |
258 | <table> |
259 | <tr> |
260 | <th>Item |
261 | <th class=left>Description |
262 | <tr> |
263 | <td>Latitude |
264 | <td>Location of the node (degrees) |
265 | <tr> |
266 | <td>Longitude |
267 | <td>Location of the node (degrees) |
268 | <tr> |
269 | <td>Section Distance |
270 | <td>The distance travelled on the section of the journey that ends at this |
271 | node. |
272 | <tr> |
273 | <td>Section Duration |
274 | <td>The duration of travel on the section of the journey that ends at this |
275 | node. |
276 | <tr> |
277 | <td>Total Distance |
278 | <td>The total distance travelled up to this point. |
279 | <tr> |
280 | <td>Total Duration |
281 | <td>The total duration of travel up to this point. |
282 | <tr> |
283 | <td>Point Type |
284 | <td>The type of point; either a waypoint <em>Waypt</em> or junction |
285 | <em>Junct</em>. |
286 | <tr> |
287 | <td>Turn |
288 | <td>The direction to turn at this point (missing for the first line since |
289 | the journey has not started yet and for the last line because it has |
290 | finished). This can take one of nine values between -4 and +4 defined by: |
291 | 0 = <em>Straight</em>, +2 = <em>Right</em>, -2 = <em>Left</em> and +/-4 |
292 | = <em>Reverse</em>. |
293 | <tr> |
294 | <td>Bearing |
295 | <td>The direction to head from this point (missing for the last line since |
296 | the journey has finished). This can take one of nine values between -4 |
297 | and +4 defined by: 0 = <em>North</em>, +2 = <em>East</em>, -2 |
298 | = <em>West</em> and +/-4 = <em>South</em>. |
299 | <tr> |
300 | <td>Highway |
301 | <td>The name (or description) of the highway to follow from this point |
302 | (missing on the last line since the journey has finished). |
303 | </table> |
304 | |
305 | <p> |
306 | |
307 | The individual items are separated by tabs but some of the items contain spaces |
308 | as well. |
309 | |
310 | |
311 | <h3><a name="H_1_1_5" title="All nodes text file"></a>All Nodes Text File</h3> |
312 | |
313 | The all nodes text file format contains one entry for each of the nodes on the |
314 | route. |
315 | |
316 | <p> |
317 | |
318 | An example all nodes text file output is below: |
319 | |
320 | <pre class="boxed"> |
321 | # Creator : Routino - http://www.routino.org/ |
322 | # Source : Based on OpenStreetMap data from http://www.openstreetmap.org/ |
323 | # License : http://www.openstreetmap.org/copyright |
324 | # |
325 | #Latitude Longitude Node Type Segment Segment Total Total Speed Bearing Highway |
326 | # Dist Durat'n Dist Durat'n |
327 | 51.524658 -0.127877 8439703* Waypt 0.000 0.00 0.00 0.0 |
328 | 51.523768 -0.126918 8439948* Junct- 0.119 0.15 0.12 0.1 96 146 Woburn Place (A4200) |
329 | 51.522811 -0.125781 8440207* Junct 0.132 0.17 0.25 0.3 96 143 Woburn Place (A4200) |
330 | ... |
331 | 51.478015 -0.104870 8529638* Change 0.138 0.17 6.26 5.6 48 74 Vassall Road |
332 | 51.478127 -0.104174 8529849* Junct- 0.049 0.04 6.31 5.7 64 75 Vassall Road |
333 | 51.478244 -0.103651 8530008 Waypt 0.038 0.04 6.35 5.7 64 70 Vassall Road |
334 | </pre> |
335 | |
336 | <p> |
337 | |
338 | The all nodes text file output contains a header (indicated by the lines |
339 | starting with '#') and then one line for each node and the segment that was used |
340 | to reach it. This file therefore contains exactly the same model as is used |
341 | internally to define a route (a series of results each of which is a node and |
342 | the segment leading to it). |
343 | |
344 | For each of the lines the individual fields contain the following: |
345 | |
346 | <table> |
347 | <tr> |
348 | <th>Item |
349 | <th class=left>Description |
350 | <tr> |
351 | <td>Latitude |
352 | <td>Location of the node in degrees. |
353 | <tr> |
354 | <td>Longitude |
355 | <td>Location of the node in degrees. |
356 | <tr> |
357 | <td>Node |
358 | <td>The internal node number and an indicator "*" if the node is a super-node. |
359 | <tr> |
360 | <td>Type |
361 | <td>The type of point; a waypoint <em>Waypt</em>, important |
362 | junction <em>Junct</em>, unimportant junction <em>Junct-</em>, change of |
363 | highway <em>Change</em> or intermediate node <em>Inter</em>. |
364 | <tr> |
365 | <td>Segment Distance |
366 | <td>The distance travelled on the segment defined on this line. |
367 | <tr> |
368 | <td>Segment Duration |
369 | <td>The duration of travel on the segment defined on this line. |
370 | <tr> |
371 | <td>Total Distance |
372 | <td>The total distance travelled up to this point. |
373 | <tr> |
374 | <td>Total Duration |
375 | <td>The total duration of travel up to this point. |
376 | <tr> |
377 | <td>Speed |
378 | <td>The speed of travel on the segment defined on this line (missing on the |
379 | first line). |
380 | <tr> |
381 | <td>Bearing |
382 | <td>The direction that the segment defined on this line travels in degrees |
383 | (missing on the first line). |
384 | <tr> |
385 | <td>Highway |
386 | <td>The name (or description) of the highway segment (missing on the first |
387 | line). |
388 | </table> |
389 | |
390 | |
391 | </div> |
392 | |
393 | <!-- Content End --> |
394 | |
395 | <!-- Footer Start --> |
396 | |
397 | <div class="footer" align="center"> |
398 | <hr> |
399 | |
400 | <address> |
401 | © Andrew M. Bishop - <a href="http://www.routino.org/">http://www.routino.org/</a> |
402 | </address> |
403 | |
404 | </div> |
405 | |
406 | <!-- Footer End --> |
407 | |
408 | </BODY> |
409 | |
410 | </HTML> |