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 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)
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 &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
102 &lt;HTML&gt;
103 &lt;!-- Creator : Routino - http://www.routino.org/ --&gt;
104 &lt;!-- Source : Based on OpenStreetMap data from http://www.openstreetmap.org/ --&gt;
105 &lt;!-- License : http://www.openstreetmap.org/copyright --&gt;
106 &lt;HEAD&gt;
107 &lt;TITLE&gt;Shortest Route&lt;/TITLE&gt;
108 ...
109 &lt;/HEAD&gt;
110 &lt;BODY&gt;
111 &lt;H1&gt;Shortest Route&lt;/H1&gt;
112 &lt;table&gt;
113 &lt;tr class='c'&gt;&lt;td class='l'&gt;1:&lt;td class='r'&gt;51.524658 -0.127877
114 &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;
115 &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;]
116 &lt;tr class='c'&gt;&lt;td class='l'&gt;2:&lt;td class='r'&gt;51.522811 -0.125781
117 &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;
118 &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;]
119 &lt;tr class='c'&gt;&lt;td class='l'&gt;3:&lt;td class='r'&gt;51.521482 -0.124123
120 &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;
121 &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;]
122 ...
123 &lt;tr class='c'&gt;&lt;td class='l'&gt;21:&lt;td class='r'&gt;51.477678 -0.106792
124 &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;
125 &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;]
126 &lt;tr class='c'&gt;&lt;td class='l'&gt;22:&lt;td class='r'&gt;51.478015 -0.104870
127 &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;
128 &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;]
129 &lt;tr class='c'&gt;&lt;td class='l'&gt;23:&lt;td class='r'&gt;51.478244 -0.103651
130 &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;
131 &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;
132 &lt;/table&gt;
133 &lt;/BODY&gt;
134 &lt;/HTML&gt;
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 &lt;?xml version="1.0" encoding="UTF-8"?&gt;
149 &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;
150 &lt;metadata&gt;
151 &lt;desc&gt;Creator : Routino - http://www.routino.org/&lt;/desc&gt;
152 &lt;copyright author="Based on OpenStreetMap data from http://www.openstreetmap.org/"&gt;
153 &lt;license&gt;http://www.openstreetmap.org/copyright&lt;/license&gt;
154 &lt;/copyright&gt;
155 &lt;/metadata&gt;
156 &lt;trk&gt;
157 &lt;name&gt;Shortest route&lt;/name&gt;
158 &lt;desc&gt;Shortest route between 'start' and 'finish' waypoints&lt;/desc&gt;
159 &lt;trkpt lat="51.524658" lon="-0.127877"/&gt;
160 &lt;trkpt lat="51.523768" lon="-0.126918"/&gt;
161 &lt;trkpt lat="51.522811" lon="-0.125781"/&gt;
162 ...
163 &lt;trkpt lat="51.478015" lon="-0.104870"/&gt;
164 &lt;trkpt lat="51.478127" lon="-0.104174"/&gt;
165 &lt;trkpt lat="51.478244" lon="-0.103651"/&gt;
166 &lt;/trkseg&gt;
167 &lt;/trk&gt;
168 &lt;/gpx&gt;
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 &lt;?xml version="1.0" encoding="UTF-8"?&gt;
184 &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;
185 &lt;metadata&gt;
186 &lt;desc&gt;Creator : Routino - http://www.routino.org/&lt;/desc&gt;
187 &lt;copyright author="Based on OpenStreetMap data from http://www.openstreetmap.org/"&gt;
188 &lt;license&gt;http://www.openstreetmap.org/copyright&lt;/license&gt;
189 &lt;/copyright&gt;
190 &lt;/metadata&gt;
191 &lt;rte&gt;
192 &lt;name&gt;Shortest route&lt;/name&gt;
193 &lt;desc&gt;Shortest route between 'start' and 'finish' waypoints&lt;/desc&gt;
194 &lt;rtept lat="51.524658" lon="-0.127877"&gt;
195 &lt;name&gt;START&lt;/name&gt;
196 &lt;desc&gt;South-East on 'Woburn Place (A4200)' for 0.251 km, 0.3 min&lt;/desc&gt;
197 &lt;/rtept&gt;
198 &lt;rtept lat="51.522811" lon="-0.125781"&gt;
199 &lt;name&gt;TRIP001&lt;/name&gt;
200 &lt;desc&gt;South-East on 'Russell Square (A4200)' for 0.186 km, 0.2 min&lt;/desc&gt;
201 &lt;/rtept&gt;
202 &lt;rtept lat="51.521482" lon="-0.124123"&gt;
203 &lt;name&gt;TRIP002&lt;/name&gt;
204 &lt;desc&gt;South-East on 'Southampton Row (A4200)' for 0.351 km, 0.4 min&lt;/desc&gt;
205 &lt;/rtept&gt;
206 ...
207 &lt;rtept lat="51.477678" lon="-0.106792"&gt;
208 &lt;name&gt;TRIP020&lt;/name&gt;
209 &lt;desc&gt;South-East on 'Vassall Road' for 0.138 km, 0.2 min&lt;/desc&gt;
210 &lt;/rtept&gt;
211 &lt;rtept lat="51.478015" lon="-0.104870"&gt;
212 &lt;name&gt;TRIP021&lt;/name&gt;
213 &lt;desc&gt;East on 'Vassall Road' for 0.087 km, 0.1 min&lt;/desc&gt;
214 &lt;/rtept&gt;
215 &lt;rtept lat="51.478244" lon="-0.103651"&gt;
216 &lt;name&gt;FINISH&lt;/name&gt;
217 &lt;desc&gt;Total Journey 6.4 km, 6 minutes&lt;/desc&gt;
218 &lt;/rtept&gt;
219 &lt;/rte&gt;
220 &lt;/gpx&gt;
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 &copy; 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>