1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 Routino documentation - output
7 Part of the Routino routing software.
9 This file Copyright 2008-2010 Andrew M. Bishop
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.
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.
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/.
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">
35 <div class="header" align="center">
37 <h1>Routino : Output</h1>
44 <!-- Content Start -->
48 <h2><a name="H_1_1"></a>Router Output</h2>
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:
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.
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
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
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.
81 <!-- For reference the examples were produced from the following URL:
82 http://www.gedanken.org.uk/mapping/routino/customrouter.cgi?transport=motorcar;lon1=-0.12790;lat1=51.52468;lon2=-0.10365;lat2=51.47824 -->
84 <h3><a name="H_1_1_1" title="HTML file"></a>HTML Route Instructions</h3>
86 The HTML route instructions file contains one line for each of the interesting
87 junctions in the route and one line for the highway that connects them.
91 An example HTML file output is below (some parts are missing, for example the
95 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
97 <!-- Creator : Routino - http://www.routino.org/ -->
98 <!-- Source : Based on OpenStreetMap data from http://www.openstreetmap.org/ -->
99 <!-- License : http://creativecommons.org/licenses/by-sa/2.0/ -->
101 <TITLE>Shortest Route</TITLE>
105 <H1>Shortest Route</H1>
107 <tr class='c'><td class='l'><td class='r'>51.524677 -0.127896
108 <tr class='n'><td class='l'>Start:<td class='r'>At <span class='w'>Waypoint</span>, head <span class='b'>South-East</span>
110 <tr class='s'><td class='l'>Follow:<td class='r'><span class='h'>Russell Square</span> for <span class='d'>0.391 km, 0.5 min</span> [<span class='j'>0.4 km, 0 minutes</span>]
112 <tr class='t'><td class='l'>Total:<td class='r'><span class='j'>6.3 km, 5 minutes</span>
113 <tr><td class='l'>Stop:<td class='r'><span class='w'>Waypoint</span>
119 The coordinates are included in the file but are not visible because of the
122 <h3><a name="H_1_1_2" title="GPX track file"></a>GPX Track File</h3>
124 The GPX track file contains a track with all of the individual nodes that the
125 route passes through.
129 An example GPX track file output is below:
132 <?xml version="1.0" encoding="UTF-8"?>
133 <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">
135 <desc>Creator : Routino - http://www.routino.org/</desc>
136 <copyright author="Based on OpenStreetMap data from http://www.openstreetmap.org/">
137 <license>http://creativecommons.org/licenses/by-sa/2.0/</license>
141 <name>Shortest route</name>
142 <desc>Shortest route between 'start' and 'finish' waypoints</desc>
143 <trkpt lat="51.524677" lon="-0.127896"/>
144 <trkpt lat="51.523830" lon="-0.126993"/>
146 <trkpt lat="51.478353" lon="-0.103561"/>
147 <trkpt lat="51.478244" lon="-0.103652"/>
154 <h3><a name="H_1_1_3" title="GPX route file"></a>GPX Route File</h3>
156 The GPX route file contains a route (ordered set of waypoints) with all of the
157 interesting junctions that the route passes through.
161 An example GPX route file output is below:
164 <?xml version="1.0" encoding="UTF-8"?>
165 <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">
167 <desc>Creator : Routino - http://www.routino.org/</desc>
168 <copyright author="Based on OpenStreetMap data from http://www.openstreetmap.org/">
169 <license>http://creativecommons.org/licenses/by-sa/2.0/</license>
173 <name>Shortest route</name>
174 <desc>Shortest route between 'start' and 'finish' waypoints</desc>
175 <rtept lat="51.524677" lon="-0.127896"><name>START</name>
176 <desc>South-East on 'Russell Square' for 0.391 km, 0.5 min</desc></rtept>
177 <rtept lat="51.521815" lon="-0.124577"><name>TRIP001</name>
178 <desc>South-East on 'Russell Square' for 0.055 km, 0.1 min</desc></rtept>
180 <rtept lat="51.478244" lon="-0.103652"><name>FINISH</name>
181 <desc>Total Journey 6.3 km, 5 minutes</desc></rtept>
187 <h3><a name="H_1_1_4" title="Text file"></a>Text File</h3>
189 The text file format contains one entry for all of the interesting junctions in
190 the route and is intended to be easy to interpret.
194 An example text file output is below:
197 # Creator : Routino - http://www.routino.org/
198 # Source : Based on OpenStreetMap data from http://www.openstreetmap.org/
199 # License : http://creativecommons.org/licenses/by-sa/2.0/
201 #Latitude Longitude Section Section Total Total Point Turn Bearing Highway
202 # Distance Duration Distance Duration Type
203 51.524677 -0.127896 0.000 km 0.0 min 0.0 km 0 min Waypt +3
204 51.521815 -0.124577 0.391 km 0.5 min 0.4 km 0 min Junct +0 +3 Russell Square
206 51.478353 -0.103561 0.598 km 0.4 min 6.2 km 5 min Junct +2 -3 Camberwell New Road (A202)
207 51.478244 -0.103652 0.013 km 0.0 min 6.3 km 5 min Waypt Vassall Road
212 The text file output contains a header (indicated by the lines starting with
213 '#') and then one line for each junction. Each line contains the information
214 for the route up to that point and the direction to go next.
216 For each of the lines the individual fields contain the following:
221 <th class=left>Description
224 <td>Location of the point (degrees)
227 <td>Location of the point (degrees)
230 <td>The distance travelled on the section of the journey that ends at this
231 point (defined on this line).
234 <td>The duration of travel on the section of the journey that ends at this
235 point (defined on this line).
238 <td>The total distance travelled up to this point.
241 <td>The total duration of travel up to this point.
244 <td>The type of point; either a waypoint <em>Waypt</em> or
245 junction <em>Junct</em>.
248 <td>The direction to turn at this point (missing for the first point since
249 the journey has not started yet and the last point because it has
250 finished). This can take one of nine values between -4 and +4 defined by:
251 0 = <em>Straight</em>, +2 = <em>Right</em>, -2 = <em>Left</em> and +/-4
255 <td>The direction to head at this point (missing for the last point since
256 the journey has finished). This can take one of nine values between -4
257 and +4 defined by: 0 = <em>North</em>, +2 = <em>East</em>, -2
258 = <em>West</em> and +/-4 = <em>South</em>.
261 <td>The name (or description) of the highway to follow (missing on the first
267 The individual items are separated by tabs but some of the items contain spaces
271 <h3><a name="H_1_1_5" title="All nodes text file"></a>All Nodes Text File</h3>
273 The all nodes text file format contains one entry for each of the nodes on the
278 An example all nodes text file output is below:
281 # Creator : Routino - http://www.routino.org/
282 # Source : Based on OpenStreetMap data from http://www.openstreetmap.org/
283 # License : http://creativecommons.org/licenses/by-sa/2.0/
285 #Latitude Longitude Node Type Segment Segment Total Total Speed Bearing Highway
286 # Dist Durat'n Dist Durat'n
287 51.524677 -0.127896 7485978* Waypt 0.000 0.00 0.00 0.0
288 51.523830 -0.126993 7485047* Junct 0.113 0.14 0.11 0.1 96 146 Woburn Place
290 51.478353 -0.103561 7576939* Junct 0.104 0.07 6.25 5.0 96 126 Camberwell New Road (A202)
291 51.478244 -0.103652 7581605 Waypt 0.013 0.01 6.26 5.0 64 207 Vassall Road
296 The all nodes text file output is similar to the text file output except that a
297 line is printed for each of the nodes rather than just the interesting junctions.
299 For each of the lines the individual fields contain the following:
304 <th class=left>Description
307 <td>Location of the point in degrees.
310 <td>Location of the point in degrees.
313 <td>The internal node number and an indicator "*" if the node is a super-node.
316 <td>The type of point; a waypoint <em>Waypt</em>, junction <em>Junct</em>,
317 change of highway <em>Change</em> or intermediate node <em>Inter</em>.
320 <td>The distance travelled on the segment defined on this line.
323 <td>The duration of travel on the segment defined on this line.
326 <td>The total distance travelled up to this point.
329 <td>The total duration of travel up to this point.
332 <td>The speed of travel on the segment defined on this line (missing on the
336 <td>The direction that the segment defined on this line travels in degrees
337 (missing on the first line).
340 <td>The name (or description) of the highway segment (missing on the first
349 <!-- Footer Start -->
351 <div class="footer" align="center">
355 © Andrew M. Bishop = <amb "at" gedanken.demon.co.uk>