Skip to content

Commit 21e3af7

Browse files
committed
Namespace constants so that they don't clash.
1 parent 3b2200f commit 21e3af7

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

segment.proto

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,47 @@ message Segment {
44

55
// road classes are based on OpenStreetMap usage of the "highway" tag.
66
// each value of the enumeration corresponds to one value of the tag,
7-
// except for ServiceOther, which is used for service and other roads.
7+
// except for ClassServiceOther, which is used for service and other roads.
88
enum RoadClass {
9-
Motorway = 0;
10-
Trunk = 1;
11-
Primary = 2;
12-
Secondary = 3;
13-
Tertiary = 4;
14-
Unclassified = 5;
15-
Residential = 6;
16-
ServiceOther = 7;
9+
ClassMotorway = 0;
10+
ClassTrunk = 1;
11+
ClassPrimary = 2;
12+
ClassSecondary = 3;
13+
ClassTertiary = 4;
14+
ClassUnclassified = 5;
15+
ClassResidential = 6;
16+
ClassServiceOther = 7;
1717
}
1818

1919
// form of way describes the physical attributes of the road.
2020
enum FormOfWay {
21-
// use Undefined if you do not know what physical attributes the road
21+
// use FowUndefined if you do not know what physical attributes the road
2222
// has.
23-
Undefined = 0;
23+
FowUndefined = 0;
2424

25-
// use Motorway for motorways.
26-
Motorway = 1;
25+
// use FowMotorway for motorways.
26+
FowMotorway = 1;
2727

28-
// use MultipleCarriageway for multiple carriageway roads. that is, when
28+
// use FowMultipleCarriageway for multiple carriageway roads. that is, when
2929
// there are separate OSM ways for each direction of travel.
30-
MultipleCarriageway = 2;
30+
FowMultipleCarriageway = 2;
3131

32-
// use SingleCarriageway for other roads.
33-
SingleCarriageway = 3;
32+
// use FowSingleCarriageway for other roads.
33+
FowSingleCarriageway = 3;
3434

35-
// use Roundabout for roundabouts
36-
Roundabout = 4;
35+
// use FowRoundabout for roundabouts
36+
FowRoundabout = 4;
3737

38-
// use TrafficSquare for roads which enclose an area, but which are not
38+
// use FowTrafficSquare for roads which enclose an area, but which are not
3939
// roundabouts
40-
TrafficSquare = 5;
40+
FowTrafficSquare = 5;
4141

42-
// use SlipRoad for slip roads, ramps and other links.
43-
SlipRoad = 6;
42+
// use FowSlipRoad for slip roads, ramps and other links.
43+
FowSlipRoad = 6;
4444

45-
// use Other for roads which do not match any of the above definitions,
45+
// use FowOther for roads which do not match any of the above definitions,
4646
// but for which the form of way is known.
47-
Other = 7;
47+
FowOther = 7;
4848
}
4949

5050
message LatLng {

tile.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package opentraffic.osmlr;
2121
message Tile {
2222

2323
enum Marker {
24-
Deleted = 1;
24+
MarkDeleted = 1;
2525
}
2626

2727
message Entry {

0 commit comments

Comments
 (0)