File: tagging.html

package info (click to toggle)
routino 3.2-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,376 kB
  • sloc: ansic: 22,337; xml: 5,520; perl: 2,485; makefile: 753; sh: 661
file content (988 lines) | stat: -rw-r--r-- 30,476 bytes parent folder | download | duplicates (3)
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
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Routino : Tagging Rules</title>

<!--
 Routino documentation - tagging

 Part of the Routino routing software.

 This file Copyright 2008-2015 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/.
-->

<link href="style.css" type="text/css" rel="stylesheet">
</head>

<body>

<!-- Header Start -->

<div class="header">

<h1>Routino : Tagging Rules</h1>

</div>

<!-- Header End -->

<!-- Content Start -->

<div class="content">

<h2 id="H_1_1">Tags And Attributes</h2>

The different tags and attributes in the 
<a class="ext" title="OpenStreetMap" href="http://www.openstreetmap.org/">OSM</a>
format XML that are used by Routino are described below.

<p>

Routino handles the tags in the input file after they have been processed
according to a set of rules defined in a configuration file.  The first half of
this file describes the tags that are recognised by Routino after being
processed; the second half of the file describes the transformations that are in
the default tagging configuration file.


<!-- ==================== Tags Recognised After Processing ==================== -->


<h2 id="H_1_2" title="After Processing">Tags Recognised After Processing</h2>

This section describes the tags that are recognised by Routino after the tag
transformations have been applied.  This is therefore a much reduced set of tags
compared to the original OSM data and also includes tags which are specific to
Routino.

<p>

In all cases of tag processing values of <em>true</em>, <em>yes</em>, <em>1</em>
are recognised as being affirmative and any other value is negative.


<!-- ========================= Routino Node Tags ========================= -->

<h3 id="H_1_2_1" title="Nodes">Node Tags And Attributes</h3>

The node attributes <em>id</em>, <em>latitude</em> and <em>longitude</em> are
used.  The id attribute is required to associate the node with the ways and the
position attributes are required to locate the node.


<h4 id="H_1_2_1_1" title="transport tags">Transport Specific Tags</h4>

One tag is recognised for each of the different modes of transport: <em>foot</em>,
<em>horse</em>, <em>bicycle</em>, <em>wheelchair</em>, <em>moped</em>,
<em>motorcycle</em>, <em>motorcar</em>, <em>goods</em>, <em>hgv</em>
and <em>psv</em>.  These indicate whether the specific type of transport is
allowed to pass through the node or not.

<p>

By default for nodes all types of transport are allowed to pass through a node
and specific tags must be used to remove the permissions for the transport.


<h4 id="H_1_2_1_2" title="roundabout (node)">The roundabout Tag</h4>

The <em>roundabout</em> tag for mini-roundabouts is recognised and used to
improve the description of the route.


<!-- ========================= Routino Way Tags ========================= -->

<h3 id="H_1_2_2" title="Ways">Way Tags And Attributes</h3>

The tags from the ways in the data are the ones that provide most of the
information for routing.  The <em>id</em> attribute is used only so that the
many segments associated with a way can share a set of tags taken from the way.
The <em>nd</em> information is used to identify the nodes that make up the way.


<h4 id="H_1_2_2_1" title="highway (way)">The highway Tag</h4>

The most important tag that is used from a way is the <em>highway</em> tag.
This defines the type of highway that the way represents.  Any way that does not
have a highway tag is discarded.

<p>

There are more highway types defined than are used by the router.  The subset
that the router uses are:

<ul>
  <li>motorway
  <li>trunk
  <li>primary
  <li>secondary
  <li>tertiary
  <li>unclassified
  <li>residential
  <li>service
  <li>track
  <li>cycleway
  <li>path (1)
  <li>steps (2)
</ul>

<p>

<i>
  Note 1: This changed in version 1.3 of Routino - the bridleway and footway
  types were included within the path highway type.
  <br>
  Note 2: This changed in version 1.3 of Routino - the steps type was separated
  from the footway type.
</i>


<h4 id="H_1_2_2_2" title="transport tags">Transport Specific Tags</h4>

One tag is recognised for each of the different modes of transport: <em>foot</em>,
<em>horse</em>, <em>bicycle</em>, <em>wheelchair</em>, <em>moped</em>,
<em>motorcycle</em>, <em>motorcar</em>, <em>goods</em>, <em>hgv</em>
and <em>psv</em>.  These indicate whether the specific type of transport is
allowed on the highway or not.

<p>

By default for ways no types of transport are allowed to pass along a highway
and specific tags must be used to add the permissions for the transport.


<h4 id="H_1_2_2_3" title="name">The name Tag</h4>

The <em>name</em> tag is used to provide the label for the highway when printing
the results.


<h4 id="H_1_2_2_4" title="ref">The ref Tag</h4>

The <em>ref</em> tag is used to provide the label for the highway when printing
the results.


<h4 id="H_1_2_2_5" title="lanes">The lanes Tag</h4>

The <em>lanes</em> tag is used to identify whether a highway has multiple lanes
for traffic and this is used to derive the <em>multilane</em> highway
properties.


<h4 id="H_1_2_2_6" title="paved">The paved Tag</h4>

The <em>paved</em> tag is used to identify whether a highway is paved or not,
this is one of the available highway properties.  A <em>paved</em> tag may exist
in the original data but normally the <em>surface</em> tag needs to be
transformed into the <em>paved</em> tag.


<h4 id="H_1_2_2_7" title="multilane">The multilane Tag</h4>

The <em>multilane</em> tag is used to indicate that a highway has multiple lanes
for traffic.


<h4 id="H_1_2_2_8" title="bridge">The bridge Tag</h4>

The <em>bridge</em> tag is used to identify whether a highway is a bridge and
therefore set one of the available properties.


<h4 id="H_1_2_2_9" title="tunnel">The tunnel Tag</h4>

The <em>tunnel</em> tag is used to identify whether a highway is a tunnel and
therefore set one of the available properties.


<h4 id="H_1_2_2_10" title="footroute">The footroute Tag</h4>

The <em>footroute</em> tag is used to identify whether a highway is part of a
walking route and therefore set one of the available properties.  This is not a
standard OSM tag and is normally added to the individual highways by looking for
route relations that are designated for foot access.


<h4 id="H_1_2_2_11" title="bicycleroute">The bicycleroute Tag</h4>

The <em>bicycleroute</em> tag is used to identify whether a highway is part of a
bicycle route and therefore set one of the available properties.  This is not a
standard OSM tag and is normally added to the individual highways by looking for
route relations that are designated for bicycle access.


<h4 id="H_1_2_2_12" title="cyclebothways">The cyclebothways Tag</h4>

The <em>cyclebothways</em> tag is used to identify whether a highway allows
cycling in the opposite direction to a signposted oneway restriction.


<h4 id="H_1_2_2_13" title="oneway">The oneway Tag</h4>

The <em>oneway</em> tag is used to specify that traffic is only allowed to
travel in one direction.


<h4 id="H_1_2_2_14" title="roundabout (way)">The roundabout Tag</h4>

The <em>roundabout</em> tag is used to specify that a highway is part of a
roundabout to improve the description of the calculated route.


<h4 id="H_1_2_2_15" title="maxspeed">The maxspeed Tag</h4>

The <em>maxspeed</em> tag is used to specify the maximum speed limit on the
highway; this is always measured in km/hr in OpenStreetMap data.  If the tag
value contains "mph" then it is assumed to be a value in those units and
converted to km/hr.


<h4 id="H_1_2_2_16" title="maxweight">The maxweight Tag</h4>

The <em>maxweight</em> tag is used to specify the maximum weight of any traffic
on the highway.  In other words this must be set to the heaviest weight allowed
on the highway (for example a bridge) in tonnes.  If the tag value contains "kg"
then it is assumed that the value is in these units and converted to tonnes.


<h4 id="H_1_2_2_17" title="maxheight">The maxheight Tag</h4>

The <em>maxheight</em> tag is used to specify the maximum height of any traffic
on the highway.  In other words this must be set to the lowest height of
anything above the highway (like a bridge) in metres.  If the tag value contains
a measurement in feet or feet and inches then attempts are made to convert this
to metres.


<h4 id="H_1_2_2_18" title="maxwidth">The maxwidth Tag</h4>

The <em>maxwidth</em> tag is used to specify the maximum width of any traffic on
the highway.  This must be set to the minimum width of the constraints at the
wayside in metres.  If the tag value contains a measurement in feet or feet and
inches then attempts are made to convert this to metres.


<h4 id="H_1_2_2_19" title="maxlength">The maxlength Tag</h4>

The <em>maxlength</em> tag is used to specify the maximum length of any traffic
on the highway (usually from a traffic sign) in metres.  If the tag value
contains a measurement in feet or feet and inches then attempts are made to
convert this to metres.


<h4 id="H_1_2_2_20" title="area">The area Tag</h4>

The <em>area</em> tag is used to specify that a way defines an area.  This is
used only so that in the case of duplicated segments those belonging to an area
can be discarded in preference to those that are not.


<!-- ========================= Routino Relation Tags ========================= -->

<h3 id="H_1_2_3" title="Relations">Relation Tags And Attributes</h3>

The tags from the relations are used to associate more properties with the
highways that are part of that relation.  The <em>id</em> attribute is used so
that relations that are members of other relations can be identified.
The <em>member</em> information is used to identify the nodes and ways that make
up the relation.


<h4 id="H_1_2_3_1" title="footroute">The footroute Tag</h4>

The <em>footroute</em> tag is used to identify whether a relation defines a
walking route and therefore should be applied to the individual member highways.


<h4 id="H_1_2_3_2" title="bicycleroute">The bicycleroute Tag</h4>

The <em>bicycleroute</em> tag is used to identify whether a relation defines a
bicycle route and therefore should be applied to the individual member highways.


<h4 id="H_1_2_3_3" title="type, restriction, except">The type, restriction & except Tags</h4>

For turn relations the information about the allowed or disallowed turns are
stored in the <em>type</em>, <em>restriction</em> and <em>except</em> tags.  For
a turn restriction the <em>type</em> must be equal to "restriction",
the <em>restriction</em> must define the type of turn relation
and <em>except</em> defines transport types which are exempt from the
restriction.


<!-- ==================== Tag Transformations ==================== -->

<h2 id="H_1_3">Tag Transformations</h2>

This section describes the set of tag transformations that are contained in the
default configuration file.  The configuration file tagging rules are applied in
sequence and this section of the document is arranged in the same order.


<!-- ==================== Node Tag Transformations ==================== -->

<h3 id="H_1_3_1" title="Nodes">Node Tag Transformations</h3>

<h4 id="H_1_3_1_1">Barrier Defaults</h4>

The first part of the tag transformations is to decide on defaults for each type
of node.  This uses the <em>barrier</em> tag in the OSM file and converts it into
a default set of disallowed transport types.

<p>

<table>
  <caption>Transport types through different barrier types</caption>
  <tr>
    <th class="left">Barrier
    <th class="center">foot
    <th class="center">horse
    <th class="center">wheelchair
    <th class="center">bicycle
    <th class="center">moped
    <th class="center">motorcycle
    <th class="center">motorcar
    <th class="center">goods
    <th class="center">hgv
    <th class="center">psv
  <tr>
    <td class="left">kissing_gate, footgate, stile, v_stile, turnstile, squeeze, squeeze_stile, cycle_barrier, bicycle_barrier
    <td class="center">yes
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
  <tr>
    <td class="left">horse_stile, horse_jump, step_over
    <td class="center">yes
    <td class="center">yes
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
  <tr>
    <td class="left">horse_barrier, cattle_grid
    <td class="center">yes
    <td class="center">no
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
  <tr>
    <td class="left">motorcyle_barrier
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
  <tr>
    <td class="left">bollard, car_barrier, car_trap
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
</table>

<h4 id="H_1_3_1_2" title="Generic access">Generic Access Permissions</h4>

The <em>access</em> tag is used to specify the default access restrictions
through the node.  If the tag value is <em>no</em> or <em>private</em> or a
selection of other values then all transport types are denied access (later tag
transformation rules may add specific transport types back again).


<h4 id="H_1_3_1_3" title="Other access">Other Access Permissions</h4>

A tag named <em>vehicle</em> means any of the <em>bicycle</em>, <em>moped</em>,
<em>motorcycle</em>, <em>motorcar</em>, <em>goods</em>, <em>hgv</em>
and <em>psv</em> transport types.  A tag named <em>motor_vehicle</em> is
transformed to mean any vehicle except a <em>bicycle</em>.


<h4 id="H_1_3_1_4" title="Specific access">Specific Access Permissions</h4>

The final part of the access permissions is to use the specific transport type
tags.

<p>

One tag is recognised for each of the different modes of transport: <em>foot</em>,
<em>horse</em>, <em>bicycle</em>, <em>wheelchair</em>, <em>moped</em>,
<em>motorcycle</em>, <em>motorcar</em>, <em>goods</em>, <em>hgv</em>
and <em>psv</em>.  These indicate whether the specific type of transport is
allowed through the node or not; the values listed for the <em>access</em> tag
are also accepted here.


<h4 id="H_1_3_1_5">Mini-roundabouts</h4>

If the <em>highway</em> tag has the value <em>mini_roundabout</em> or
the <em>junction</em> tag has the value <em>roundabout</em> then
a <em>junction</em> tag with value <em>roundabout</em>is passed through.


<!-- ==================== Way Tag Transformations ==================== -->

<h3 id="H_1_3_2" title="Ways">Way Tag Transformations</h3>


<h4 id="H_1_3_2_1">Highway Defaults</h4>

The first part of the tag transformations is to decide on defaults for each type
of highway.  This uses the <em>highway</em> tag in the OSM file and maps it into
one of the <em>highway</em> tags that are recognised by Routino, defining the
default allowed transport types and adding a number of properties.

<p>
The first part of the highway tag checking is to ignore the <em>highway</em> tag
if it has a value that indicates a non-highway.  These are the <em>proposed</em>
and <em>construction</em> values for future highways, the <em>no</em>,
<em>abandoned</em> and <em>disused</em> values for previous highways and a small
number of other values.

<p>
The second part of the highway transformation is to convert the <em>highway</em>
tag into one that is recognised by Routino.

<p>

<table>
  <caption>Mapping of equivalent highway types</caption>
  <tr>
    <th class="left">Original tag
    <th class="left">Transformed tag
  <tr>
    <td class="left">motorway_link
    <td class="left">motorway
  <tr>
    <td class="left">trunk_link
    <td class="left">trunk
  <tr>
    <td class="left">primary_link
    <td class="left">primary
  <tr>
    <td class="left">secondary_link
    <td class="left">secondary
  <tr>
    <td class="left">tertiary_link
    <td class="left">tertiary
  <tr>
    <td class="left">minor, road
    <td class="left">unclassified
  <tr>
    <td class="left">living_street
    <td class="left">residential
  <tr>
    <td class="left">access, services, layby
    <td class="left">service
  <tr>
    <td class="left">byway, unsurfaced, unpaved
    <td class="left">track
  <tr>
    <td class="left">footway, bridleway, pedestrian, walkway
    <td class="left">path
  <tr>
    <td class="left">route=ferry
    <td class="left">ferry (1)
</table>

<i>
  Note 1: A ferry route is converted into a highway of type "ferry" so that
  routes using a ferry can be calculated.
</i>

<p>
The type of highway also determines the defaults for the types of transport
allowed on the highway.  The default assumptions are as shown in the table
below.

<p>

<table>
  <caption>Transport types on different highway types</caption>
  <tr>
    <th class="left">Highway
    <th class="center">foot
    <th class="center">horse
    <th class="center">wheelchair
    <th class="center">bicycle
    <th class="center">moped
    <th class="center">motorcycle
    <th class="center">motorcar
    <th class="center">goods
    <th class="center">hgv
    <th class="center">psv
  <tr>
    <td class="left">motorway
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
  <tr>
    <td class="left">trunk
    <td class="center">no (1)
    <td class="center">no (1)
    <td class="center">no (1)
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
  <tr>
    <td class="left">primary
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
  <tr>
    <td class="left">secondary
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
  <tr>
    <td class="left">tertiary
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
  <tr>
    <td class="left">unclassified
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
  <tr>
    <td class="left">residential
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
  <tr>
    <td class="left">service
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
  <tr>
    <td class="left">track
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">yes
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
  <tr>
    <td class="left">cycleway
    <td class="center">yes
    <td class="center">no
    <td class="center">yes
    <td class="center">yes
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
  <tr>
    <td class="left">path
    <td class="center">yes
    <td class="center">yes (2)
    <td class="center">yes
    <td class="center">yes (2)
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
  <tr>
    <td class="left">steps
    <td class="center">yes
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
  <tr>
    <td class="left">ferry (3)
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
    <td class="center">no
</table>

<p>

<i>
  Note 1: A trunk road may legally allow foot, horse or wheelchair access but in
  the absence of other tags is considered to be too dangerous.
  <br>
  Note 2: A path allows bicycle or horse access by default only if actually
  labelled as a highway of type "bridleway".
  <br>
  Note 3: Ferry routes must be explicitly tagged with the allowed transport
  types, it is not sensible to try to guess.
</i>

<p>
Finally for the highway tag a number of default properties are added depending
on the highway type.

<p>

<table>
  <caption>Default properties on different highway types</caption>
  <tr>
    <th class="center">Highway
    <th class="center">Properties
  <tr>
    <td class="center">motorway
    <td class="center">paved, oneway, multilane
  <tr>
    <td class="center">trunk
    <td class="center">paved, multilane (1)
  <tr>
    <td class="center">primary
    <td class="center">paved, multilane (1)
  <tr>
    <td class="center">secondary
    <td class="center">paved
  <tr>
    <td class="center">tertiary
    <td class="center">paved
  <tr>
    <td class="center">unclassified
    <td class="center">paved
  <tr>
    <td class="center">residential
    <td class="center">paved
  <tr>
    <td class="center">service
    <td class="center">paved
  <tr>
    <td class="center">track
    <td class="center">paved (2)
  <tr>
    <td class="center">cycleway
    <td class="center">paved
  <tr>
    <td class="center">path
    <td class="center">paved (3)
  <tr>
    <td class="center">steps
    <td class="center">
  <tr>
    <td class="center">ferry
    <td class="center">
</table>

<p>

<i>
  Note 1: A highway of this type has the multilane property by default if it is
  oneway.
  <br>
  Note 2: A track is paved only if it is tagged as tracktype=grade1.
  <br>
  Note 3: A path is paved only if it was originally tagged as highway=walkway or
  highway=pedestrian.
</i>


<h4 id="H_1_3_2_2" title="Generic access">Generic Access Permissions</h4>

The <em>access</em> tag is used to specify the default access restrictions on
the highway.  If the tag value is <em>no</em> or <em>private</em> or a selection
of other values then all transport types are denied access (later tag
transformation rules may add specific transport types back again).


<h4 id="H_1_3_2_3" title="Other access">Other Access Permissions</h4>

A tag named <em>vehicle</em> means any of the <em>bicycle</em>, <em>moped</em>,
<em>motorcycle</em>, <em>motorcar</em>, <em>goods</em>, <em>hgv</em>
and <em>psv</em> transport types.  A tag named <em>motor_vehicle</em> is
transformed to mean any vehicle except a <em>bicycle</em>.

<p>
The <em>designation</em> tag is used as an alternative method of identifying the
legal right of way on a path (in the UK at least).  The tag transformations
convert these tags into a set of allowed transport types as shown below.

<p>

<table>
  <caption>Aliasing of designation types</caption>
  <tr>
    <th class="left">Designation tag
    <th class="left">Equivalent access permissions
  <tr>
    <td class="left">restricted_byway
    <td class="left">foot=yes, wheelchair=yes, horse=yes, bicycle=yes
  <tr>
    <td class="left">public_byway, byway, byway_open_to_all_traffic
    <td class="left">foot=yes, wheelchair=yes, horse=yes, bicycle=yes, moped=yes, motorcycle=yes, motorcar=yes
  <tr>
    <td class="left">permissive_bridleway, public_bridleway, bridleway
    <td class="left">foot=yes, wheelchair=yes, horse=yes, bicycle=yes
  <tr>
    <td class="left">public_cycleway
    <td class="left">foot=yes, wheelchair=yes, bicycle=yes
  <tr>
    <td class="left">permissive_footpath, public_footpath, footpath
    <td class="left">foot=yes, wheelchair=yes
</table>

<p>
In addition to these there are some other tags and values that will modify the
transport permissions on the highway.

<p>
A highway that is tagged as <em>motorroad</em> with a value of <em>yes</em> will
deny access to <em>foot</em>, <em>horse</em>, <em>wheelchair</em>,
<em>bicycle</em> and <em>moped</em> transport.

<p>
A highway that is tagged with <em>footway</em> or <em>sidewalk</em> and one of a
set of popular values will allow <em>foot</em> and <em>wheelchair</em> access
even if the road type would not normally do so.

<p>
A highway that is tagged as <em>cycleway</em> with one of several values will
allow bicycle access.  If the value of the <em>cycleway</em> tag
is <em>opposite_lane</em>, <em>opposite_track</em> or <em>opposite</em> then
the <em>cyclebothways</em> tag is set.

<p>
A highway that is tagged as <em>oneway:bicycle</em> with the value <em>no</em>
will also cause the <em>cyclebothways</em> tag to be set.


<h4 id="H_1_3_2_4" title="Specific access">Specific Access Permissions</h4>

The final part of the access permissions is to use the specific transport type
tags.

<p>

One tag is recognised for each of the different modes of transport: <em>foot</em>,
<em>horse</em>, <em>bicycle</em>, <em>wheelchair</em>, <em>moped</em>,
<em>motorcycle</em>, <em>motorcar</em>, <em>goods</em>, <em>hgv</em>
and <em>psv</em>.  These indicate whether the specific type of transport is
allowed on the highway or not.


<h4 id="H_1_3_2_5" title="Properties">Highway Properties</h4>

If there is a surface tag then the highway is assumed to be unpaved unless the
tag value matches one of the following: <em>paved</em>, <em>asphalt</em>,
<em>concrete</em> or many other values listed in the configuration file.

<p>

Support for the obsolete <em>paved</em> tag is also provided and the highway is
paved if this is set to a true value.

<p>

The <em>lanes</em> tag is passed through to be used to set the
<em>multilane</em> highway property.

<p>

The <em>bridge</em> and <em>tunnel</em> tags are copied directly from the input
to the output.


<h4 id="H_1_3_2_6" title="Restrictions">Highway Restrictions</h4>

The <em>oneway</em>, <em>maxspeed</em>, <em>maxweight</em>, <em>maxheight</em>,
<em>maxwidth</em> and <em>maxlength</em> are copied directly from the input to
the output without modification.


<h4 id="H_1_3_2_7">Roundabouts</h4>

If a highway is tagged as <em>junction=roundabout</em> then a
<em>roundabout=yes</em> tag created on the output.


<h4 id="H_1_3_2_8" title="Names and Refs">Highway Names and References</h4>

The <em>name</em> and <em>ref</em> tags are copied directly from the input to
the output.


<h4 id="H_1_3_2_9" title="Areas">Highway Areas</h4>

The <em>area</em> tag is copied directly from the input to the output.


<!-- ==================== Relation Tag Transformations ==================== -->

<h3 id="H_1_3_3" title="Relations">Relation Tag Transformations</h3>

The <em>type</em> tag is passed through without change.


<h4 id="H_1_3_3_1">Routes</h4>

The <em>route</em> tag can be used to determine whether a relation is part of a
walking or bicycle route so that the <em>footroute</em> or <em>bicycleroute</em>
properties can be applied to the highways that make up that relation.

<p>

The tag transformations that are applied for route relations are defined in the
table below.

<p>

<table>
  <caption>Route properties from different route types</caption>
  <tr>
    <th class="center">Relation Tag
    <th class="center">footroute Property
    <th class="center">bicycleroute Property
  <tr>
    <td class="center">foot, walking, hiking
    <td class="center">yes
    <td class="center">no
  <tr>
    <td class="center">bicycle
    <td class="center">no
    <td class="center">yes
  <tr>
    <td class="center">bicycle;foot, foot;bicycle
    <td class="center">yes
    <td class="center">yes
</table>


<h4 id="H_1_3_3_2">Turn Restrictions</h4>

No tag transformations are defined for turn restriction relations but
the <em>restriction</em> and <em>except</em> tags are passed through without
change.


</div>

<!-- Content End -->

<!-- Footer Start -->

<div class="footer">

<address>
&copy; Andrew M. Bishop - <a href="http://www.routino.org/">http://www.routino.org/</a>
</address>

</div>

<!-- Footer End -->

</body>

</html>