/usr/share/routino/www/documentation/usage.html is in routino-www 2.4.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<!--
Routino documentation - usage
Part of the Routino routing software.
This file Copyright 2008-2012 Andrew M. Bishop
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
-->
<HEAD>
<TITLE>Routino : Usage</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK href="style.css" type="text/css" rel="stylesheet">
</HEAD>
<BODY>
<!-- Header Start -->
<div class="header" align="center">
<h1>Routino : Usage</h1>
<hr>
</div>
<!-- Header End -->
<!-- Content Start -->
<div class="content">
<h2><a name="H_1_1"></a>Program Usage</h2>
There are five programs that make up this software. The first one takes the
planet.osm datafile from OpenStreetMap (or other source of data using the same
formats) and converts it into a local database. The second program uses the
database to determine an optimum route between two points. The third program
allows visualisation of the data and statistics to be extracted. The fourth
program allows dumping the raw parsed data for test purposes and the fifth is a
test program for the tag transformations.
<h3><a name="H_1_1_1"></a>planetsplitter</h3>
This program reads in the OSM format XML file and splits it up to create the
database that is used for routing.
<pre class="boxed">
Usage: planetsplitter [--help]
[--dir=<dirname>] [--prefix=<name>]
[--sort-ram-size=<size>] [--sort-threads=<number>]
[--tmpdir=<dirname>]
[--tagging=<filename>]
[--loggable] [--logtime]
[--errorlog[=<name>]]
[--parse-only | --process-only]
[--append] [--keep] [--changes]
[--max-iterations=<number>]
[--prune-none]
[--prune-isolated=<len>]
[--prune-short=<len>]
[--prune-straight=<len>]
[<filename.osm> ...]
</pre>
<dl>
<dt>--help
<dd>Prints out the help information.
<dt>--dir=<dirname>
<dd>Sets the directory name in which to save the results.
Defaults to the current directory.
<dt>--prefix=<name>
<dd>Sets the filename prefix for the files that are created.
Defaults to no prefix.
<dt>--sort-ram-size=<size>
<dd>Specifies the amount of RAM (in MB) to use for sorting the data. If not
specified then 64 MB will be used in slim mode or 256 MB otherwise.
<dt>--sort-threads=<number>
<dd>The number of threads to use for data sorting (the sorting memory is
shared between the threads - too many threads and not enough memory will
reduce the performance).
<dt>--tmpdir=<dirname>
<dd>Specifies the name of the directory to store the temporary disk files. If
not specified then it defaults to either the value of the --dir option or the
current directory.
<dt>--tagging=<filename>
<dd>Sets the filename containing the list of tagging rules in XML format for
the parsing the input files. If the file doesn't exist then dirname, prefix
and "profiles.xml" will be combined and used, if that doesn't exist then the
file '/usr/local/share/routino/profiles.xml' (or custom installation
location) will be used.
<dt>--loggable
<dd>Print progress messages that are suitable for logging to a file; normally
an incrementing counter is printed which is more suitable for real-time
display than logging.
<dt>--logtime
<dd>Print the elapsed time for each processing step.
<dt>--errorlog[=<name>]
<dd>Log OSM parsing and processing errors to 'error.log' or the specified file
name (the '--dir' and '--prefix' options are applied). If the --append
option is used then the existing log file will be appended, otherwise a new
one will be created.
<dt>--parse-only
<dd>Parse the input files and store the data in intermediate files but don't
process the data into a routing database. This option must be used with the
--append option for all except the first file.
<dt>--process-only
<dd>Don't read in any files but process the existing intermediate files
created by using the --parse-only option.
<dt>--append
<dd>Parse the input file and append the result to the existing intermediate
files; the appended file can be either an OSM file or an OSC change file.
<dt>--keep
<dd>Store a set of intermediate files after parsing the OSM files, sorting and
removing duplicates; this allows appending an OSC file and re-processing
later.
<dt>--changes
<dd>This option indicates that the data being processed contains one or more
OSC (OSM changes) files, they must be applied in time sequence if more than
one is used. This option implies --append when parsing data files and
--keep when processing data.
<dt>--max-iterations=<number>
<dd>The maximum number of iterations to use when generating super-nodes and
super-segments. Defaults to 5 which is normally enough.
<dt>--prune-none
<dd>Disable the prune options below, they can be re-enabled by adding them to
the command line after this option.
<dt>--prune-isolated=<length>
<dd>Remove the access permissions for a transport type from small disconnected
groups of segments and remove the segments if they nd up with no access
permission (defaults to removing groups under 500m).
<dt>--prune-short=<length>
<dd>Remove short segments (defaults to removing segments up to a maximum
length of 5m).
<dt>--prune-straight=<length>
<dd>Remove nodes in almost straight highways (defaults to removing nodes up to
3m offset from a straight line).
<dt><filename.osm> ...
<dd>Specifies the filename(s) to read data from, by default data is read from
the standard input.
</dl>
<p>
<i>Note: In version 1.4 of Routino the --transport, --not-highway and
--not-property options have been removed. The same functionality can be
achieved by editing the tagging rules file to not output unwanted data.</i>
<p>
<i>Note: In version 1.5 of Routino the --slim option has been removed but at
compilation time a separate program called <em>planetsplitter-slim</em> is
created that operates in slim mode. In slim mode the temporary files and
database files are read as needed rather than being mapped into memory. This
allows a database size greater than 2 GB on 32-bit machines or usage with little
or no virtual memory (e.g. some virtual machines). The penalty for this is that
the program takes about twice as long to run.</i>
<p>
Example usage 1:
<pre class="boxed">
planetsplitter --dir=data --prefix=gb great_britain.osm
</pre>
This will generate the output files 'data/gb-nodes.mem', 'data/gb-segments.mem'
and 'data/gb-ways.mem'. Multiple filenames can be specified on the command
line and they will all be read in, combined and processed together.
<p>
Example usage 2:
<pre class="boxed">
planetsplitter --dir=data --prefix=gb --parse-only great_britain_part1.osm
planetsplitter --dir=data --prefix=gb --parse-only --append great_britain_part2.osm
planetsplitter --dir=data --prefix=gb --parse-only --append ...
planetsplitter --dir=data --prefix=gb --process-only
</pre>
This will generate the same output files as the first example but parsing the
input files is performed separately from the data processing. The first file
read in must not use the --append option but the later ones must.
<p>
Example usage 3:
<pre class="boxed">
planetsplitter --dir=data --prefix=gb --keep great_britain_part.osm
planetsplitter --dir=data --prefix=gb --changes great_britain.osc
</pre>
This will generate the same output files as the first example. The first
command will process the complete file and keep some intermediate data for
later. The second command will apply a set of changes to the stored
intermediate data and keep the updated intermediate files for repeating this
step later with more change data.
<p>
The parsing and processing can be split into multiple commands as it was in
example 2 with the --keep option used with --process-only for the initial OSM
file(s) and the --changes option used with --parse-only or --process-only for
every OSC file.
<h3><a name="H_1_1_2"></a>router</h3>
This program performs the calculation of the optimum routes using the database
generated by the planetsplitter program.
<pre class="boxed">
Usage: router [--help | --help-profile | --help-profile-xml |
--help-profile-json | --help-profile-perl ]
[--dir=<dirname>] [--prefix=<name>]
[--profiles=<filename>] [--translations=<filename>]
[--exact-nodes-only]
[--loggable | --quiet]
[--output-html]
[--output-gpx-track] [--output-gpx-route]
[--output-text] [--output-text-all]
[--output-none]
[--profile=<name>]
[--transport=<transport>]
[--shortest | --quickest]
--lon1=<longitude> --lat1=<latitude>
--lon2=<longitude> --lon2=<latitude>
[ ... --lon99=<longitude> --lon99=<latitude>]
[--heading=<bearing>]
[--highway-<highway>=<preference> ...]
[--speed-<highway>=<speed> ...]
[--property-<property>=<preference> ...]
[--oneway=(0|1)] [--turns=(0|1)]
[--weight=<weight>]
[--height=<height>] [--width=<width>] [--length=<length>]
</pre>
<dl>
<dt>--help
<dd>Prints out the help information.
<dt>--help-profile
<dd>Prints out the selected transport profile (type, speed limits, highway
preferences etc.)
<dt>--help-profile-xml
<dd>Prints out all the loaded profiles as an XML file in the same format that
can be loaded in.
<dt>--help-profile-json
<dd>Prints out all the loaded profiles in JavaScript Object Notation (JSON)
format for use in the interactive webpage.
<dt>--help-profile-perl
<dd>Prints out all the loaded profiles as a Perl object for use in the router
CGI.
<dt>--dir=<dirname>
<dd>Sets the directory name in which to read the local database.
Defaults to the current directory.
<dt>--prefix=<name>
<dd>Sets the filename prefix for the files in the local database.
Defaults to no prefix.
<dt>--profiles=<filename>
<dd>Sets the filename containing the list of routing profiles in XML format.
If the file doesn't exist then dirname, prefix and "profiles.xml" will be
combined and used, if that doesn't exist then the file
'/usr/local/share/routino/profiles.xml' (or custom installation location)
will be used.
<dt>--translations=<filename>
<dd>Sets the filename containing the list of translations in XML format for
the output files. If the file doesn't exist then dirname, prefix and
"translations.xml" will be combined and used, if that doesn't exist then the
file '/usr/local/share/routino/translations.xml' (or custom installation
location) will be used.
<dt>--exact-nodes-only
<dd>When processing the specified latitude and longitude points only select
the nearest node instead of finding the nearest point within a segment
(quicker but less accurate unless the points are already near nodes).
<dt>--loggable
<dd>Print progress messages that are suitable for logging to a file; normally
an incrementing counter is printed which is more suitable for real-time
display than logging.
<dt>--quiet
<dd>Don't generate any screen output while running (useful for running in a script).
<dt>--language=<lang>
<dd>Select the language specified from the file of translations. If this
option is not given and the file exists then the first language in the file
will be used. If this option is not given and no file exists the
compiled-in default language (English) will be used.
<dt>--output-html
<dt>--output-gpx-track
<dt>--output-gpx-route
<dt>--output-text
<dt>--output-text-all
<dd>Generate the selected output file formats (HTML, GPX track file, GPX route
file, plain text route and/or plain text with all nodes). If no output is
specified then all are generated, specifying any automatically disables those
not specified.
<dt>--output-none
<dd>Do not generate any output or read in any translations files.
<dt>--profile=<name>
<dd>Specifies the name of the profile to use.
<dt>--transport=<transport>
<dd>Select the type of transport to use, <transport> can be set to:
<ul>
<li>foot = Foot
<li>horse = Horse
<li>wheelchair = Wheelchair
<li>bicycle = Bicycle
<li>moped = Moped (Small motorbike, limited speed)
<li>motorbike = Motorbike
<li>motorcar = Motorcar
<li>goods = Goods (Small lorry, van)
<li>hgv = HGV (Heavy Goods Vehicle - large lorry)
<li>psv = PSV (Public Service Vehicle - bus, coach)
</ul>
Defaults to 'motorcar', this option also selects the default profile
information if the '--profile' option is not given and a profile matching
the transport name is found.
<dt>--shortest
<dd>Find the shortest route between the waypoints.
<dt>--quickest
<dd>Find the quickest route between the waypoints.
<dt>--lon1=<longitude>, --lat1=<latitude>
<dt>--lon2=<longitude>, --lat2=<latitude>
<dt>... --lon99=<longitude>, --lat99=<latitude>
<dd>The location of the waypoints that make up the start, middle and end
points of the route. Up to 99 waypoints can be specified and the route will
pass through each of the specified ones in sequence. The algorithm will use
the closest node or point within a segment that allows the specified traffic
type.
<dt>--heading=<bearing>
<dd>Specifies the initial direction of travel at the start of the route (from
the lowest numbered waypoint) as a compass bearing from 0 to 360 degrees.
<dt>--highway-<highway>=<preference>
<dd>Selects the percentage preference for using each particular type of
highway. The value of <highway> can be selected from:
<ul>
<li>motorway = Motorway
<li>trunk = Trunk
<li>primary = Primary
<li>secondary = Secondary
<li>tertiary = Tertiary
<li>unclassified = Unclassified
<li>residential = Residential
<li>service = Service
<li>track = Track
<li>cycleway = Cycleway
<li>path = Path
<li>steps = Steps
<li>ferry = Ferry
</ul>
Default value depends on the profile selected by the --transport option.
<dt>--speed-<highway>=<speed>
<dd>Selects the speed limit in km/hour for each type of highway. Default
value depends on the profile selected by the --transport option.
<dt>--property-<property>=<preference>
<dd>Selects the percentage preference for using each particular highway
property
The value of <property> can be selected from:
<ul>
<li>paved = Paved (suitable for normal wheels)
<li>multilane = Multiple lanes
<li>bridge = Bridge
<li>tunnel = Tunnel
<li>footroute = A route marked for foot travel
<li>bicycleroute = A route marked for bicycle travel
</ul>
Default value depends on the profile selected by the --transport option.
<dt>--oneway=[0|1]
<dd>Selects if the direction of oneway streets are to be obeyed (useful to not
obey them when walking). Default value depends on the profile selected by
the --transport option.
<dt>--turns=[0|1]
<dd>Selects if turn restrictions are to be obeyed (useful to not obey them
when walking). Default value depends on the profile selected by the
--transport option.
<dt>--weight=<weight>
<dd>Specifies the weight of the mode of transport in tonnes; ensures that the
weight limit on the highway is not exceeded. Default value depends on the
profile selected by the --transport option.
<dt>--height=<height>
<dd>Specifies the height of the mode of transport in metres; ensures that the
height limit on the highway is not exceeded. Default value depends on the
profile selected by the --transport option.
<dt>--width=<width>
<dd>Specifies the width of the mode of transport in metres; ensures that the
width limit on the highway is not exceeded. Default value depends on the
profile selected by the --transport option.
<dt>--length=<length>
<dd>Specifies the length of the mode of transport in metres; ensures that the
length limit on the highway is not exceeded. Default value depends on the
profile selected by the --transport option.
</dl>
<p>
<i>Note: In version 1.5 of Routino a slim option has been added and at
compilation time a separate program called <em>router-slim</em> is created that
operates in slim mode. In slim mode the database files are read as needed
rather than being mapped into memory.</i>
<p>
The meaning of the <preference> parameter in the command line options is
slightly different for the highway preferences and the property preferences.
For the highway preference consider the choice between two possible highways
between the start and finish when looking for the shortest route. If highway A
has a preference of 100% and highway B has a preference of 90% then highway A
will be chosen even if it is up to 11% longer (100/90 = 111%). For the highway
properties each highway either has a particular property or not. If the
preference for the property is 60% then a highway with the property has a
preference of 77% (sqrt(60%)) and one without has a preference of 63%
(sqrt(100-60%)). A highway with the property will be chosen even if it is up to
22% longer than one without the property (77/63 = 122%). The overall preference
for each highway segment is the product of the preference for the highway type
and all of the preferences for the highway properties.
<p>
Example usage (motorbike journey, scenic route, not very fast):
<pre class="boxed">
router --dir=data --prefix=gb --transport=motorbike --highway-motorway=0 \
--highway-trunk=0 --speed-primary=80 --speed-secondary=80 --quickest
</pre>
This will use the files 'data/gb-nodes.mem', 'data/gb-segments.mem' and
'data/gb-ways.mem' to find the quickest route by motorbike not using motorways
or trunk roads and not exceeding 80 km/hr.
<h3><a name="H_1_1_3"></a>filedumper</h3>
This program is used to extract statistics from the database, extract particular
information for visualisation purposes or for dumping the database contents.
<pre class="boxed">
Usage: filedumper [--help]
[--dir=<dirname>] [--prefix=<name>]
[--statistics]
[--visualiser --latmin=<latmin> --latmax=<latmax>
--lonmin=<lonmin> --lonmax=<lonmax>
--data=<data-type>]
[--dump [--node=<node> ...]
[--segment=<segment> ...]
[--way=<way> ...]
[--turn-relation=<relation> ...]]
[--dump-osm [--no-super]
[--latmin=<latmin> --latmax=<latmax>
--lonmin=<lonmin> --lonmax=<lonmax>]]
</pre>
<dl>
<dt>--help
<dd>Prints out the help information.
<dt>--dir=<dirname>
<dd>Sets the directory name in which to read the local database.
Defaults to the current directory.
<dt>--prefix=<name>
<dd>Sets the filename prefix for the files in the local database.
<dt>--statistics
<dd>Prints out statistics about the database files.
<dt>--visualiser
<dd>Selects a data visualiser mode which will output a set of data according
to the other parameters below.
<dl>
<dt>--latmin=<latmin> --latmax=<latmax>
<dd>The range of latitudes to print the data for.
<dt>--lonmin=<lonmin> --lonmax=<lonmax>
<dd>The range of longitudes to print the data for.
<dt>--data=<data-type>
<dd>The type of data to output, <data-type> can be selected from:
<ul>
<li>junctions = segment count at each junction.
<li>super = super-node and super-segments.
<li>oneway = oneway segments.
<li>highway-* = segments of the specified highway type
(e.g. highway-primary to display segments ofprimary roads).
<li>transport-* = segments allowing the specified transport type
(e.g. transport-foot to display segments accessible on foot).
<li>turns = turn restrictions.
<li>speed = speed limits.
<li>weight = weight limits.
<li>height = height limits.
<li>width = width limits.
<li>length = length limits.
</ul>
</dl>
<dt>--dump
<dd>Selects a data dumping mode which allows looking at individual items in
the databases (specifying 'all' instead of a number dumps all of them).
More than one of the following parameters can be specified on the command
line.
<dl>
<dt>--node=<node>
<dd>Prints the information about the selected node number (internal
number, not the node id number in the original source file).
<dt>--segment=<segment>
<dd>Prints the information about the selected segment number.
<dt>--way=<way>
<dd>Prints the information about the selected way number (internal
number, not the way id number in the original source file).
<dt>--turn-relation=<relation>
<dd>Prints the information about the selected turn relation number
(internal number, not the relation id number in the original source
file).
</dl>
<dt>--osm-dump
<dd>Dumps the contents of the database as an OSM format XML file, the whole
database will be dumped unless the latitude and longitude ranges are
specified.
<dl>
<dt>--no-super
<dd>The super segments will not be output.
<dt>--latmin=<latmin> --latmax=<latmax>
<dd>The range of latitudes to dump the data for.
<dt>--lonmin=<lonmin> --lonmax=<lonmax>
<dd>The range of longitudes to dump the data for.
</dl>
</dl>
<p>
<i>Note: In version 1.5 of Routino a slim option has been added and at
compilation time a separate program called <em>filedumper-slim</em> is created
that operates in slim mode. In slim mode the database files are read as needed
rather than being mapped into memory.</i>
<h3><a name="H_1_1_4"></a>filedumperx</h3>
This program is a modified version of filedumper that will dump out the contents
of the intermediate data that is saved by planetsplitter after processing using
the --keep or --changes option. This is intended for test purposes only and
gives no useful information about the routing database.
<pre class="boxed">
Usage: filedumper [--help]
[--dir=<dirname>] [--prefix=<name>]
[--dump [--nodes]
[--segments]
[--ways]
[--route-relations]
[--turn-relations]]
</pre>
<dl>
<dt>--help
<dd>Prints out the help information.
<dt>--dir=<dirname>
<dd>Sets the directory name in which to read the local database.
Defaults to the current directory.
<dt>--prefix=<name>
<dd>Sets the filename prefix for the files in the local database.
<dt>--dump
<dd>Dumps the complete set of data in the intermediate files that are written
by planetsplitter using the --keep or --changes options.
<dl>
<dt>--nodes
<dd>Dumps the node data.
<dt>--segments
<dd>Dumps the segment data.
<dt>--ways
<dd>Dumps the way data.
<dt>--route-relations
<dd>Dumps the route relation data.
<dt>--turn-relations
<dd>Dumps the turn relation data.
</dl>
</dl>
<h3><a name="H_1_1_5"></a>tagmodifier</h3>
This program is used to run the tag transformation process on an OSM XML file
for test purposes.
<pre class="boxed">
Usage: tagmodifier [--help]
[--loggable]
[--tagging=<filename>]
[<filename.osm>]
</pre>
<dl>
<dt>--help
<dd>Prints out the help information.
<dt>--loggable
<dd>Print progress messages that are suitable for logging to a file; normally
an incrementing counter is printed which is more suitable for real-time
display than logging.
<dt>--tagging=<filename>
<dd>The name of the XML file containing the tagging rules (defaults to
'tagging.xml' in the current directory).
<dt><filename.osm> ...
<dd>Specifies the filename to read data from, by default data is read from
the standard input.
</dl>
</div>
<!-- Content End -->
<!-- Footer Start -->
<div class="footer" align="center">
<hr>
<address>
© Andrew M. Bishop = <amb "at" gedanken.demon.co.uk>
</address>
</div>
<!-- Footer End -->
</BODY>
</HTML>
|