Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Contents of /trunk/doc/html/output.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1076 - (show annotations) (download) (as text)
Tue Sep 25 18:21:00 2012 UTC (12 years, 6 months ago) by amb
File MIME type: text/html
File size: 16324 byte(s)
Change the example output now that the copyright notice has changed, the final
turn is no longer missed and minor junctions are formatted differently in the
all text format.

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