Skip to content

Commit 1e028c6

Browse files
feat: add road access restriction of type 'permit' (#477)
Adds road access restriction type corresponding to OSM tag `access = permit` that has been introduced in GIScience/openrouteservice#2047. Additionally, the color palette for the different restriction types has been tweaked to better suit the qualitative nature of the presented data
2 parents 1f668cd + 76d3351 commit 1e028c6

11 files changed

+24
-11
lines changed

docs/en-translation-source-merged.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@
600600
"delivery": "Delivery",
601601
"private": "Private",
602602
"permissive": "Permissive",
603+
"permit": "Permit",
603604
"stateRoad": "State Road",
604605
"road": "Road",
605606
"street": "Street",

src/resources/i18n/ors-dictionary.i18n.cs-cz.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export default {
2525
destination: 'Cíl',
2626
delivery: 'Zásobovací',
2727
private: 'Soukromá',
28-
permissive: 'Na povolení',
28+
permissive: 'Povolen',
29+
permit: 'Na povolení',
2930
stateRoad: 'Státní silnice',
3031
road: 'Silnice',
3132
street: 'Ulice',

src/resources/i18n/ors-dictionary.i18n.de-de.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default {
2727
delivery: 'Lieferverkehr',
2828
private: 'Privat',
2929
permissive: 'Geduldet',
30+
permit: 'Mit Erlaubnis',
3031
stateRoad: 'Bundesstraße',
3132
road: 'Landstraße',
3233
street: 'Straße',

src/resources/i18n/ors-dictionary.i18n.en-us.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default {
2727
delivery: 'Delivery',
2828
private: 'Private',
2929
permissive: 'Permissive',
30+
permit: 'Permit',
3031
stateRoad: 'State Road',
3132
road: 'Road',
3233
street: 'Street',

src/resources/i18n/ors-dictionary.i18n.es-es.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default {
2727
'delivery': 'Entrega',
2828
'private': 'Privado',
2929
'permissive': 'Permisivo',
30+
'permit': 'Permiso',
3031
'stateRoad': 'Carretera del Estado',
3132
'road': 'Carretera',
3233
'street': 'Calle',

src/resources/i18n/ors-dictionary.i18n.fr-fr.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export default {
2626
'destination': 'Destination',
2727
'delivery': 'Livraison',
2828
'private': 'Accès privé',
29-
'permissive': 'Permissive',
29+
'permissive': 'Permissif',
30+
'permit': 'Permis',
3031
'stateRoad': 'Route nationale',
3132
'road': 'Route',
3233
'street': 'Rue',

src/resources/i18n/ors-dictionary.i18n.hu-hu.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default {
2727
'delivery': 'Áruszállítás',
2828
'private': 'Engedéllyel',
2929
'permissive': 'Megtűrt',
30+
'permit': 'Engedély',
3031
'stateRoad': 'Főút',
3132
'road': 'Egyéb út',
3233
'street': 'Utca',

src/resources/i18n/ors-dictionary.i18n.it-it.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export default {
2525
'destination': 'Destinazione',
2626
'delivery': 'Zona di carico/scarico',
2727
'private': 'Privato',
28-
'permissive': 'Permesso',
28+
'permissive': 'Permissivo',
29+
'permit': 'Permesso',
2930
'stateRoad': 'Strada statale',
3031
'road': 'Strada',
3132
'street': 'Strada',

src/resources/i18n/ors-dictionary.i18n.pt-br.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default {
2727
delivery: 'Entrega',
2828
private: 'Privado',
2929
permissive: 'Permissivo',
30+
permit: 'Permissão',
3031
stateRoad: 'Rodovia estadual',
3132
road: 'Rodovia',
3233
street: 'Rua',

src/resources/i18n/ors-dictionary.i18n.ro-ro.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default {
1111
destination: 'Destinație',
1212
private: 'Privat',
1313
permissive: 'Permisivitate',
14+
permit: 'Permis',
1415
road: 'Drumul',
1516
street: 'Strada',
1617
path: 'Calea',

src/resources/ors-dictionary.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ const orsDictionary = {
7878
'4': 'destination',
7979
'8': 'delivery',
8080
'16': 'private',
81-
'32': 'permissive'
81+
'32': 'permissive',
82+
'64': 'permit'
8283
},
8384
green: {
8485
'0': '0',
@@ -157,13 +158,15 @@ const orsDictionary = {
157158
5: '#c71400'
158159
},
159160
roadaccessrestrictions: {
160-
0: 'gray',
161-
1: 'green',
162-
2: '#FFFF66',
163-
4: '#FFFF33',
164-
8: '#FFFF00',
165-
16: '#CCCC00',
166-
32: '#333300'
161+
// https://colorbrewer2.org/#type=qualitative&scheme=Accent&n=8
162+
0: '#808080',
163+
1: '#7fc97f',
164+
2: '#beaed4',
165+
4: '#ffff99',
166+
8: '#bf5b17',
167+
16: '#f0027f',
168+
32: '#386cb0',
169+
64: '#fdc086'
167170
},
168171
tollways: {
169172
'0': '#708090',

0 commit comments

Comments
 (0)