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/OUTPUT.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 382 - (show annotations) (download)
Tue Apr 27 16:27:33 2010 UTC (14 years, 11 months ago) by amb
File MIME type: text/plain
File size: 9897 byte(s)
Initial revision

1 Routino : Output
2 ================
3
4
5 There are three different formats of output from the router, HTML,
6 GPX (GPS eXchange) XML format and plain text with a total of five
7 possible output files:
8 * HTML route instructions for each interesting junction.
9 * GPX track file containing every node.
10 * GPX route file with waypoints at interesting junctions.
11 * Plain text description with the interesting junctions.
12 * Plain text file with every node.
13
14 The "interesting junctions" referred to above are junctions where the
15 route changes to a different type of highway, more than two highways of
16 the same type meet, or where the route meets but does not take a more
17 major highway. When the route follows a major road this definition
18 eliminates all junctions with minor roads.
19
20 The output files are written to the current directory and are named
21 depending on the selection of shortest or quickest route. For the
22 shortest route the file names are "shortest.html",
23 "shortest-track.gpx", "shortest-route.gpx", "shortest.txt" and
24 "shortest-all.txt", for the quickest route the names are
25 "quickest.html", "quickest-track.gpx", "quickest-route.gpx",
26 "quickest.txt" and "quickest-all.txt".
27
28
29 HTML Route Instructions
30 -----------------------
31
32 The HTML route instructions file contains one line for each of the
33 interesting junctions in the route and one line for the highway that
34 connects them.
35
36 An example HTML file output is below (some parts are missing, for
37 example the style definitions):
38
39 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
40 <HTML>
41 <!-- Creator : Routino - http://www.gedanken.org.uk/mapping/routino/ -->
42 <!-- Source : Based on OpenStreetMap data from http://www.openstreetmap.org/ -->
43 <!-- License : http://creativecommons.org/licenses/by-sa/2.0/ -->
44 <HEAD>
45 <TITLE>Shortest Route</TITLE>
46 ...
47 </HEAD>
48 <BODY>
49 <H1>Shortest Route</H1>
50 <table>
51 <tr class='c'><td class='l'><td class='r'>51.524677 -0.127896
52 <tr class='n'><td class='l'>Start:<td class='r'>At <span class='w'>Waypoint</span>, head <span class='b'>South-East</span>
53
54 <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>]
55 ...
56 <tr class='t'><td class='l'>Total:<td class='r'><span class='j'>6.3 km, 5 minutes</span>
57 <tr><td class='l'>Stop:<td class='r'><span class='w'>Waypoint</span>
58 </table>
59 </BODY>
60 </HTML>
61
62 The coordinates are included in the file but are not visible because of
63 the style definitions.
64
65
66 GPX Track File
67 --------------
68
69 The GPX track file contains a track with all of the individual nodes
70 that the route passes through.
71
72 An example GPX track file output is below:
73
74 <?xml version="1.0" encoding="UTF-8"?>
75 <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">
76 <metadata>
77 <desc>Creator : Routino - http://www.gedanken.org.uk/mapping/routino/</desc>
78 <copyright author="Based on OpenStreetMap data from http://www.openstreetmap.org/">
79 <license>http://creativecommons.org/licenses/by-sa/2.0/</license>
80 </copyright>
81 </metadata>
82 <trk>
83 <name>Shortest route</name>
84 <desc>Shortest route between 'start' and 'finish' waypoints</desc>
85 <trkpt lat="51.524677" lon="-0.127896"/>
86 <trkpt lat="51.523830" lon="-0.126993"/>
87 ...
88 <trkpt lat="51.478353" lon="-0.103561"/>
89 <trkpt lat="51.478244" lon="-0.103652"/>
90 </trkseg>
91 </trk>
92 </gpx>
93
94
95 GPX Route File
96 --------------
97
98 The GPX route file contains a route (ordered set of waypoints) with all
99 of the interesting junctions that the route passes through.
100
101 An example GPX route file output is below:
102
103 <?xml version="1.0" encoding="UTF-8"?>
104 <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">
105 <metadata>
106 <desc>Creator : Routino - http://www.gedanken.org.uk/mapping/routino/</desc>
107 <copyright author="Based on OpenStreetMap data from http://www.openstreetmap.org/">
108 <license>http://creativecommons.org/licenses/by-sa/2.0/</license>
109 </copyright>
110 </metadata>
111 <rte>
112 <name>Shortest route</name>
113 <desc>Shortest route between 'start' and 'finish' waypoints</desc>
114 <rtept lat="51.524677" lon="-0.127896"><name>START</name>
115 <desc>South-East on 'Russell Square' for 0.391 km, 0.5 min</desc></rtept>
116 <rtept lat="51.521815" lon="-0.124577"><name>TRIP001</name>
117 <desc>South-East on 'Russell Square' for 0.055 km, 0.1 min</desc></rtept>
118 ...
119 <rtept lat="51.478244" lon="-0.103652"><name>FINISH</name>
120 <desc>Total Journey 6.3 km, 5 minutes</desc></rtept>
121 </rte>
122 </gpx>
123
124
125 Text File
126 ---------
127
128 The text file format contains one entry for all of the interesting
129 junctions in the route and is intended to be easy to interpret.
130
131 An example text file output is below:
132
133 # Creator : Routino - http://www.gedanken.org.uk/mapping/routino/
134 # Source : Based on OpenStreetMap data from http://www.openstreetmap.org/
135 # License : http://creativecommons.org/licenses/by-sa/2.0/
136 #
137 #Latitude Longitude Section Section Total Total Point Turn Bearing Highway
138 # Distance Duration Distance Duration Type
139 51.524677 -0.127896 0.000 km 0.0 min 0.0 km 0 min Waypt +3
140 51.521815 -0.124577 0.391 km 0.5 min 0.4 km 0 min Junct +0 +3 Russell Square
141 ...
142 51.478353 -0.103561 0.598 km 0.4 min 6.2 km 5 min Junct +2 -3 Camberwell New Road (A202)
143 51.478244 -0.103652 0.013 km 0.0 min 6.3 km 5 min Waypt Vassall Road
144
145 The text file output contains a header (indicated by the lines starting
146 with '#') and then one line for each junction. Each line contains the
147 information for the route up to that point and the direction to go
148 next. For each of the lines the individual fields contain the
149 following:
150
151 Latitude - Location of the point (degrees)
152
153 Longitude - Location of the point (degrees)
154
155 Section Distance - The distance travelled on the section of the journey
156 that ends at this point (defined on this line).
157
158 Section Duration - The duration of travel on the section of the journey
159 that ends at this point (defined on this line).
160
161 Total Distance - The total distance travelled up to this point.
162
163 Total Duration - The total duration of travel up to this point.
164
165 Point Type - The type of point; either a waypoint Waypt or junction
166 Junct.
167
168 Turn - The direction to turn at this point (missing for the first point
169 since the journey has not started yet and the last point because it has
170 finished). This can take one of nine values between -4 and +4 defined
171 by: 0 = Straight, +2 = Right, -2 = Left and +/-4 = Reverse.
172
173 Bearing - The direction to head at this point (missing for the last point
174 since the journey has finished). This can take one of nine values
175 between -4 and +4 defined by: 0 = North, +2 = East, -2 = West and +/-4
176 = South.
177
178 Highway - The name (or description) of the highway to follow (missing on
179 the first line).
180
181 The individual items are separated by tabs but some of the items
182 contain spaces as well.
183
184
185 All Nodes Text File
186 -------------------
187
188 The all nodes text file format contains one entry for each of the nodes
189 on the route.
190
191 An example all nodes text file output is below:
192
193 # Creator : Routino - http://www.gedanken.org.uk/mapping/routino/
194 # Source : Based on OpenStreetMap data from http://www.openstreetmap.org/
195 # License : http://creativecommons.org/licenses/by-sa/2.0/
196 #
197 #Latitude Longitude Node Type Segment Segment Total Total Speed Bearing Highway
198 # Dist Durat'n Dist Durat'n
199 51.524677 -0.127896 7485978* Waypt 0.000 0.00 0.00 0.0
200 51.523830 -0.126993 7485047* Junct 0.113 0.14 0.11 0.1 96 146 Woburn Place
201 ...
202 51.478353 -0.103561 7576939* Junct 0.104 0.07 6.25 5.0 96 126 Camberwell New Road (A202)
203 51.478244 -0.103652 7581605 Waypt 0.013 0.01 6.26 5.0 64 207 Vassall Road
204
205 The all nodes text file output is similar to the text file output
206 except that a line is printed for each of the nodes rather than just
207 the interesting junctions. For each of the lines the individual fields
208 contain the following:
209
210 Latitude - Location of the point in degrees.
211
212 Longitude - Location of the point in degrees.
213
214 Node - The internal node number and an indicator "*" if the node is a
215 super-node.
216
217 Type - The type of point; a waypoint Waypt, junction Junct, change of
218 highway Change or intermediate node Inter.
219
220 Segment Distance - The distance travelled on the segment defined on this
221 line.
222
223 Segment Duration - The duration of travel on the segment defined on this
224 line.
225
226 Total Distance - The total distance travelled up to this point.
227
228 Total Duration - The total duration of travel up to this point.
229
230 Speed - The speed of travel on the segment defined on this line (missing
231 on the first line).
232
233 Bearing - The direction that the segment defined on this line travels in
234 degrees (missing on the first line).
235
236 Highway - The name (or description) of the highway segment (missing on
237 the first line).
238
239
240 --------
241
242 Copyright 2008-2010 Andrew M. Bishop.

Properties

Name Value
cvs:description Documentation about the router output.