Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Annotation of /trunk/doc/html/usage.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 585 - (hide annotations) (download) (as text)
Wed Dec 29 10:54:11 2010 UTC (14 years, 2 months ago) by amb
File MIME type: text/html
File size: 19243 byte(s)
Added the uncontrolled (not auto-generated) files from routino-1.5.

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