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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 810 - (show annotations) (download)
Thu Jul 21 18:15:26 2011 UTC (13 years, 8 months ago) by amb
File MIME type: text/plain
File size: 19457 byte(s)
The filename is now optional in the --errorlog option.

1 Routino : Usage
2 ===============
3
4
5 There are four programs that make up this software. The first one takes
6 the planet.osm datafile from OpenStreetMap (or other source of data
7 using the same formats) and converts it into a local database. The
8 second program uses the database to determine an optimum route between
9 two points. The third program allows visualisation of the data and
10 statistics to be extracted. The fourth program is a test program for
11 the tag transformations.
12
13
14 planetsplitter
15 --------------
16
17 This program reads in the OSM format XML file and splits it up to
18 create the database that is used for routing.
19
20 Usage: planetsplitter [--help]
21 [--dir=<dirname>] [--prefix=<name>]
22 [--sort-ram-size=<size>]
23 [--tmpdir=<dirname>]
24 [--parse-only | --process-only]
25 [--loggable] [--errorlog[=<name>]]
26 [--max-iterations=<number>]
27 [--tagging=<filename>]
28 [<filename.osm> ...]
29
30 --help
31 Prints out the help information.
32
33 --dir=<dirname>
34 Sets the directory name in which to save the results. Defaults
35 to the current directory.
36
37 --prefix=<name>
38 Sets the filename prefix for the files that are created.
39 Defaults to no prefix.
40
41 --sort-ram-size=<size>
42 Specifies the amount of RAM (in MB) to use for sorting the data.
43 If not specified then 64 MB will be used in slim mode or 256 MB
44 otherwise.
45
46 --tmpdir=<dirname>
47 Specifies the name of the directory to store the temporary disk
48 files. If not specified then it defaults to either the value of
49 the --dir option or the current directory.
50
51 --parse-only
52 Parse the input files and store them in a temporary file but
53 don't process the data into a routing database.
54
55 --process-only
56 Don't read in any files but process the existing temporary file
57 into the routing database.
58
59 --loggable
60 Print progress messages that are suitable for logging to a file;
61 normally an incrementing counter is printed which is more
62 suitable for real-time display than logging.
63
64 --errorlog[=<name>]
65 Log OSM parsing and processing errors to 'error.log' or the
66 specified file name (the '--dir' and '--prefix' options are
67 applied).
68
69 --max-iterations=<number>
70 The maximum number of iterations to use when generating
71 super-nodes and super-segments. Defaults to 10 which is normally
72 enough.
73
74 --tagging=<filename>
75 Sets the filename containing the list of tagging rules in XML
76 format for the parsing the input files. If the file doesn't
77 exist then dirname, prefix and "profiles.xml" will be combined
78 and used, if that doesn't exist then the file
79 '/usr/local/share/routino/profiles.xml' (or custom installation
80 location) will be used.
81
82 <filename.osm> ...
83 Specifies the filename(s) to read data from, by default data is
84 read from the standard input.
85
86 Note: In version 1.4 of Routino the --transport, --not-highway and
87 --not-property options have been removed. The same functionality can be
88 achieved by editing the tagging rules file to not output unwanted data.
89
90 Note: In version 1.5 of Routino the --slim option has been removed but
91 at compilation time a separate program called planetsplitter-slim is
92 created that operates in slim mode. In slim mode the temporary files
93 and database files are read as needed rather than being mapped into
94 memory. This allows a database size greater than 2 GB on 32-bit
95 machines or usage with little or no virtual memory (e.g. some virtual
96 machines). The penalty for this is that the program takes about four
97 times as long to run.
98
99 Example usage:
100
101 ./planetsplitter --dir=data --prefix=gb great_britain.osm
102
103 This will generate the output files 'data/gb-nodes.mem',
104 'data/gb-segments.mem' and 'data/gb-ways.mem'.
105
106
107 router
108 ------
109
110 This program performs the calculation of the optimum routes using the
111 database generated by the planetsplitter program.
112
113 Usage: router [--help | --help-profile | --help-profile-xml |
114 --help-profile-json | --help-profile-perl ]
115 [--dir=<dirname>] [--prefix=<name>]
116 [--profiles=<filename>] [--translations=<filename>]
117 [--exact-nodes-only]
118 [--loggable | --quiet]
119 [--output-html]
120 [--output-gpx-track] [--output-gpx-route]
121 [--output-text] [--output-text-all]
122 [--output-none]
123 [--profile=<name>]
124 [--transport=<transport>]
125 [--shortest | --quickest]
126 --lon1=<longitude> --lat1=<latitude>
127 --lon2=<longitude> --lon2=<latitude>
128 [ ... --lon99=<longitude> --lon99=<latitude>]
129 [--heading=<bearing>]
130 [--highway-<highway>=<preference> ...]
131 [--speed-<highway>=<speed> ...]
132 [--property-<property>=<preference> ...]
133 [--oneway=(0|1)] [--turns=(0|1)]
134 [--weight=<weight>]
135 [--height=<height>] [--width=<width>] [--length=<length>]
136
137 --help
138 Prints out the help information.
139
140 --help-profile
141 Prints out the selected transport profile (type, speed limits,
142 highway preferences etc.)
143
144 --help-profile-xml
145 Prints out all the loaded profiles as an XML file in the same
146 format that can be loaded in.
147
148 --help-profile-json
149 Prints out all the loaded profiles in JavaScript Object Notation
150 (JSON) format for use in the interactive webpage.
151
152 --help-profile-perl
153 Prints out all the loaded profiles as a Perl object for use in
154 the router CGI.
155
156 --dir=<dirname>
157 Sets the directory name in which to read the local database.
158 Defaults to the current directory.
159
160 --prefix=<name>
161 Sets the filename prefix for the files in the local database.
162 Defaults to no prefix.
163
164 --profiles=<filename>
165 Sets the filename containing the list of routing profiles in XML
166 format. If the file doesn't exist then dirname, prefix and
167 "profiles.xml" will be combined and used, if that doesn't exist
168 then the file '/usr/local/share/routino/profiles.xml' (or custom
169 installation location) will be used.
170
171 --translations=<filename>
172 Sets the filename containing the list of translations in XML
173 format for the output files. If the file doesn't exist then
174 dirname, prefix and "translations.xml" will be combined and
175 used, if that doesn't exist then the file
176 '/usr/local/share/routino/translations.xml' (or custom
177 installation location) will be used.
178
179 --exact-nodes-only
180 When processing the specified latitude and longitude points only
181 select the nearest node instead of finding the nearest point
182 within a segment (quicker but less accurate unless the points
183 are already near nodes).
184
185 --loggable
186 Print progress messages that are suitable for logging to a file;
187 normally an incrementing counter is printed which is more
188 suitable for real-time display than logging.
189
190 --quiet
191 Don't generate any screen output while running (useful for
192 running in a script).
193
194 --language=<lang>
195 Select the language specified from the file of translations. If
196 this option is not given and the file exists then the first
197 language in the file will be used. If this option is not given
198 and no file exists the compiled-in default language (English)
199 will be used.
200
201 --output-html
202 --output-gpx-track
203 --output-gpx-route
204 --output-text
205 --output-text-all
206 Generate the selected output file formats (HTML, GPX track file,
207 GPX route file, plain text route and/or plain text with all
208 nodes). If no output is specified then all are generated,
209 specifying any automatically disables those not specified.
210
211 --output-none
212 Do not generate any output or read in any translations files.
213
214 --profile=<name>
215 Specifies the name of the profile to use.
216
217 --transport=<transport>
218 Select the type of transport to use, <transport> can be set to:
219
220 + foot = Foot
221 + horse = Horse
222 + wheelchair = Wheelchair
223 + bicycle = Bicycle
224 + moped = Moped (Small motorbike, limited speed)
225 + motorbike = Motorbike
226 + motorcar = Motorcar
227 + goods = Goods (Small lorry, van)
228 + hgv = HGV (Heavy Goods Vehicle - large lorry)
229 + psv = PSV (Public Service Vehicle - bus, coach)
230
231 Defaults to 'motorcar', this option also selects the default
232 profile information if the '--profile' option is not given and a
233 profile matching the transport name is found.
234
235 --shortest
236 Find the shortest route between the waypoints.
237
238 --quickest
239 Find the quickest route between the waypoints.
240
241 --lon1=<longitude>, --lat1=<latitude>
242 --lon2=<longitude>, --lat2=<latitude>
243 ... --lon99=<longitude>, --lat99=<latitude>
244 The location of the waypoints that make up the start, middle and
245 end points of the route. Up to 99 waypoints can be specified and
246 the route will pass through each of the specified ones in
247 sequence. The algorithm will use the closest node or point
248 within a segment that allows the specified traffic type.
249
250 --heading=<bearing>
251 Specifies the initial direction of travel at the start of the
252 route (from the lowest numbered waypoint) as a compass bearing
253 from 0 to 360 degrees.
254
255 --highway-<highway>=<preference>
256 Selects the percentage preference for using each particular type
257 of highway. The value of <highway> can be selected from:
258
259 + motorway = Motorway
260 + trunk = Trunk
261 + primary = Primary
262 + secondary = Secondary
263 + tertiary = Tertiary
264 + unclassified = Unclassified
265 + residential = Residential
266 + service = Service
267 + track = Track
268 + cycleway = Cycleway
269 + path = Path
270 + steps = Steps
271 + ferry = Ferry
272
273 Default value depends on the profile selected by the --transport
274 option.
275
276 --speed-<highway>=<speed>
277 Selects the speed limit in km/hour for each type of highway.
278 Default value depends on the profile selected by the --transport
279 option.
280
281 --property-<property>=<preference>
282 Selects the percentage preference for using each particular
283 highway property The value of <property> can be selected from:
284
285 + paved = Paved (suitable for normal wheels)
286 + multilane = Multiple lanes
287 + bridge = Bridge
288 + tunnel = Tunnel
289 + footroute = A route marked for foot travel
290 + bicycleroute = A route marked for bicycle travel
291
292 Default value depends on the profile selected by the --transport
293 option.
294
295 --oneway=[0|1]
296 Selects if the direction of oneway streets are to be obeyed
297 (useful to not obey them when walking). Default value depends on
298 the profile selected by the --transport option.
299
300 --turns=[0|1]
301 Selects if turn restrictions are to be obeyed (useful to not
302 obey them when walking). Default value depends on the profile
303 selected by the --transport option.
304
305 --weight=<weight>
306 Specifies the weight of the mode of transport in tonnes; ensures
307 that the weight limit on the highway is not exceeded. Default
308 value depends on the profile selected by the --transport option.
309
310 --height=<height>
311 Specifies the height of the mode of transport in metres; ensures
312 that the height limit on the highway is not exceeded. Default
313 value depends on the profile selected by the --transport option.
314
315 --width=<width>
316 Specifies the width of the mode of transport in metres; ensures
317 that the width limit on the highway is not exceeded. Default
318 value depends on the profile selected by the --transport option.
319
320 --length=<length>
321 Specifies the length of the mode of transport in metres; ensures
322 that the length limit on the highway is not exceeded. Default
323 value depends on the profile selected by the --transport option.
324
325 Note: In version 1.5 of Routino a slim option has been added and at
326 compilation time a separate program called router-slim is created that
327 operates in slim mode. In slim mode the database files are read as
328 needed rather than being mapped into memory.
329
330 The meaning of the <preference> parameter in the command line options
331 is slightly different for the highway preferences and the property
332 preferences. For the highway preference consider the choice between two
333 possible highways between the start and finish when looking for the
334 shortest route. If highway A has a preference of 100% and highway B has
335 a preference of 90% then highway A will be chosen even if it is up to
336 11% longer (100/90 = 111%). For the highway properties each highway
337 either has a particular property or not. If the preference for the
338 property is 60% then a highway with the property has a preference of
339 77% (sqrt(60%)) and one without has a preference of 63%
340 (sqrt(100-60%)). A highway with the property will be chosen even if it
341 is up to 22% longer than one without the property (77/63 = 122%). The
342 overall preference for each highway segment is the product of the
343 preference for the highway type and all of the preferences for the
344 highway properties.
345
346 Example usage (motorbike journey, scenic route, not very fast):
347
348 ./router --dir=data --prefix=gb --transport=motorbike --highway-motorway=0 \
349 --highway-trunk=0 --speed-primary=80 --speed-secondary=80 --quickest
350
351 This will use the files 'data/gb-nodes.mem', 'data/gb-segments.mem' and
352 'data/gb-ways.mem' to find the quickest route by motorbike not using
353 motorways or trunk roads and not exceeding 80 km/hr.
354
355
356 filedumper
357 ----------
358
359 This program is used to extract statistics from the database, extract
360 particular information for visualisation purposes or for dumping the
361 database contents.
362
363 Usage: filedumper [--help]
364 [--dir=<dirname>] [--prefix=<name>]
365 [--statistics]
366 [--visualiser --latmin=<latmin> --latmax=<latmax>
367 --lonmin=<lonmin> --lonmax=<lonmax>
368 --data=<data-type>]
369 [--dump [--node=<node> ...]
370 [--segment=<segment> ...]
371 [--way=<way> ...]
372 [--turn-relation=<relation> ...]]
373 [--dump-osm [--no-super]
374 [--latmin=<latmin> --latmax=<latmax>
375 --lonmin=<lonmin> --lonmax=<lonmax>]]
376
377 --help
378 Prints out the help information.
379
380 --dir=<dirname>
381 Sets the directory name in which to read the local database.
382 Defaults to the current directory.
383
384 --prefix=<name>
385 Sets the filename prefix for the files in the local database.
386
387 --statistics
388 Prints out statistics about the database files.
389
390 --visualiser
391 Selects a data visualiser mode which will output a set of data
392 according to the other parameters below.
393
394 --latmin=<latmin> --latmax=<latmax>
395 The range of latitudes to print the data for.
396
397 --lonmin=<lonmin> --lonmax=<lonmax>
398 The range of longitudes to print the data for.
399
400 --data=<data-type>
401 The type of data to output, <data-type> can be selected
402 from:
403
404 o junctions = segment count at each junction.
405 o super = super-node and super-segments.
406 o oneway = oneway segments.
407 o turns = turn restrictions.
408 o speed = speed limits.
409 o weight = weight limits.
410 o height = height limits.
411 o width = width limits.
412 o length = length limits.
413
414 --dump
415 Selects a data dumping mode which allows looking at individual
416 items in the databases (specifying 'all' instead of a number
417 dumps all of them). More than one of the following parameters
418 can be specified on the command line.
419
420 --node=<node>
421 Prints the information about the selected node number
422 (internal number, not the node id number in the original
423 source file).
424
425 --segment=<segment>
426 Prints the information about the selected segment number.
427
428 --way=<way>
429 Prints the information about the selected way number
430 (internal number, not the way id number in the original
431 source file).
432
433 --turn-relation=<relation>
434 Prints the information about the selected turn relation
435 number (internal number, not the relation id number in the
436 original source file).
437
438 --osm-dump
439 Dumps the contents of the database as an OSM format XML file,
440 the whole database will be dumped unless the latitude and
441 longitude ranges are specified.
442
443 --no-super
444 The super segments will not be output.
445
446 --latmin=<latmin> --latmax=<latmax>
447 The range of latitudes to dump the data for.
448
449 --lonmin=<lonmin> --lonmax=<lonmax>
450 The range of longitudes to dump the data for.
451
452 Note: In version 1.5 of Routino a slim option has been added and at
453 compilation time a separate program called filedumper-slim is created
454 that operates in slim mode. In slim mode the database files are read as
455 needed rather than being mapped into memory.
456
457
458 tagmodifier
459 -----------
460
461 This program is used to run the tag transformation process on an OSM
462 XML file for test purposes.
463
464 Usage: tagmodifier [--help]
465 [--loggable]
466 [--tagging=<filename>]
467 [<filename.osm>]
468
469 --help
470 Prints out the help information.
471
472 --loggable
473 Print progress messages that are suitable for logging to a file;
474 normally an incrementing counter is printed which is more
475 suitable for real-time display than logging.
476
477 --tagging=<filename>
478 The name of the XML file containing the tagging rules (defaults
479 to 'tagging.xml' in the current directory).
480
481 <filename.osm> ...
482 Specifies the filename to read data from, by default data is
483 read from the standard input.
484
485
486 --------
487
488 Copyright 2008-2011 Andrew M. Bishop.

Properties

Name Value
cvs:description Description of program usage.