Skip to content

Commit 4b0cc9e

Browse files
committed
Use string for country type. For country specification see ISO 3166-1, alpha-2 codes.
1 parent d451441 commit 4b0cc9e

File tree

1 file changed

+7
-26
lines changed

1 file changed

+7
-26
lines changed

osi_trafficsign.proto

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,9 @@ message TrafficSign
287287
//
288288
optional bool is_out_of_service = 7;
289289

290-
// Specifies the country
291-
optional Country country = 8;
290+
// Specifies the country. See ISO 3166-1, alpha-2 codes
291+
// https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
292+
optional string country = 8;
292293

293294
// The year the traffic rules come into force
294295
optional string country_revision = 9;
@@ -5552,11 +5553,12 @@ message TrafficSign
55525553
//
55535554
optional bool is_out_of_service = 7;
55545555

5555-
// Specifies the country
5556-
optional Country country = 8;
5556+
// Specifies the country. See ISO 3166-1, alpha-2 codes
5557+
// https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
5558+
optional string country = 8;
55575559

55585560
// The year the traffic rules come into force
5559-
optional string countryevision = 9;
5561+
optional string country_revision = 9;
55605562

55615563
// Code identifier according to country code
55625564
//
@@ -9427,25 +9429,4 @@ message TrafficSign
94279429
//
94289430
VARIABILITY_VARIABLE = 3;
94299431
}
9430-
9431-
9432-
// Definition of country.
9433-
enum Country
9434-
{
9435-
// Country is unknown
9436-
//
9437-
COUNTRY_UNKNOWN = 0;
9438-
9439-
// Country is Germany
9440-
//
9441-
GERMANY = 1;
9442-
9443-
// Country is USA
9444-
//
9445-
USA = 2;
9446-
9447-
// Country is Japan
9448-
//
9449-
JAPAN = 3;
9450-
}
94519432
}

0 commit comments

Comments
 (0)