Skip to content

Commit

Permalink
feat: add surface_quality_known and allow_unsuitable parameters for w…
Browse files Browse the repository at this point in the history
…heelchair profile
  • Loading branch information
amoncaldas committed Jan 19, 2022
1 parent f1cd7fb commit daa1799
Show file tree
Hide file tree
Showing 9 changed files with 131 additions and 16 deletions.
20 changes: 16 additions & 4 deletions docs/en-translation-source-merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@
"lng": "long",
"tones": "tones",
"t": "t",
"kmh": "km/h",
"polygon": "polygon"
"kmh": "km/h"
},
"layers": {
"macrocounty": "Macro county",
Expand Down Expand Up @@ -115,7 +114,8 @@
"toggleAccessibleMode": "Toggle accessible mode",
"aboutTitle": "About ORS",
"updateSearch": "Search this area",
"updateSearchAfterZoomOrCenterChange": "Update search after zoom or center change"
"updateSearchAfterZoomOrCenterChange": "Update search after zoom or center change",
"pageNotFound": "Page not not found. Check if the URL is not malformed"
},
"about": {
"donate": "Donate!",
Expand Down Expand Up @@ -481,7 +481,7 @@
},
"clearControlLabel": "&times",
"measureControlLabel": "↦",
"measureControlClasses": ["polyline-measure-unicode-icon"],
"measureControlClasses": [],
"unitControlLabel": {
"metres": "m",
"kilometres": "km",
Expand Down Expand Up @@ -825,6 +825,18 @@
"quiet": {
"label": "Quiet (Germany only)",
"description": "Prefer quiet areas (only available for Germany)"
},
"surface_quality_known": {
"label": "Only surfaces with known quality",
"description": "Forces the usage only of edges where the surface quality is explicitly known"
},
"allow_unsuitable": {
"label": "Allow unsuitable",
"description": "Allows usage of edges that might be unsuitable for wheelchair which were formerly excluded"
},
"vehicle_type": {
"label": "Vehicle type",
"description": "Vehicle type to be considered for the route calculation"
}
}
}
Expand Down
24 changes: 21 additions & 3 deletions src/config-examples/ors-map-filters-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ const filters = [
{
name: 'vehicle_type',
required: false,
hidden: true,
type: constants.filterTypes.string,
useInServices: [constants.services.directions],
availableOnModes: [constants.modes.directions],
Expand Down Expand Up @@ -613,7 +612,6 @@ const filters = [
name: 'weightings',
type: constants.filterTypes.wrapper,
valueAsObject: true,
hidden: true,
availableOnModes: [constants.modes.directions],
useInServices: [constants.services.directions],
validWhen: [ { ref: 'profile', value: 'foot-*' }],
Expand Down Expand Up @@ -650,6 +648,26 @@ const filters = [
],
}
]
},
{
name: 'surface_quality_known',
type: constants.filterTypes.boolean,
availableOnModes: [constants.modes.directions],
useInServices: [constants.services.directions],
validWhen: [ { ref: 'profile', value: 'wheelchair' }],
visibleWhen: [ { ref: 'profile', value: 'wheelchair' } ],
default: false,
value: false
},
{
name: 'allow_unsuitable',
type: constants.filterTypes.boolean,
availableOnModes: [constants.modes.directions],
useInServices: [constants.services.directions],
validWhen: [ { ref: 'profile', value: 'wheelchair' }],
visibleWhen: [ { ref: 'profile', value: 'wheelchair' } ],
default: false,
value: false
}
]
},
Expand Down Expand Up @@ -877,4 +895,4 @@ const filters = [
}
]

export default filters
export default filters
14 changes: 13 additions & 1 deletion src/resources/i18n/ors-map-filters.i18n.de-de.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,19 @@ export default {
quiet: {
label: 'Ruhig',
description: 'Ruhige Gebiete bevorzugen (nur für Deutschland verfügbar)',
}
},
surface_quality_known: {
label: 'Nur Oberflächen mit bekannter Qualität',
description: 'Erzwingt die Verwendung nur von Kanten, deren Oberflächenqualität explizit bekannt ist',
},
allow_unsuitable: {
label: 'Ungeeignet zulassen',
description: 'Ermöglicht die Verwendung von Kanten, die für Rollstuhlfahrer möglicherweise ungeeignet sind und früher ausgeschlossen waren'
},
vehicle_type: {
label: 'Fahrzeugtyp',
description: 'Für die Routenberechnung zu berücksichtigender Fahrzeugtyp',
}
}
}
}
14 changes: 13 additions & 1 deletion src/resources/i18n/ors-map-filters.i18n.en-us.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,19 @@ export default {
quiet: {
label: 'Quiet (Germany only)',
description: 'Prefer quiet areas (only available for Germany)',
}
},
surface_quality_known: {
label: 'Only surfaces with known quality',
description: 'Forces the usage only of edges where the surface quality is explicitly known',
},
allow_unsuitable: {
label: 'Allow unsuitable',
description: 'Allows usage of edges that might be unsuitable for wheelchair which were formerly excluded',
},
vehicle_type: {
label: 'Vehicle type',
description: 'Vehicle type to be considered for the route calculation',
}
}
}
}
15 changes: 14 additions & 1 deletion src/resources/i18n/ors-map-filters.i18n.es-es.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,20 @@ export default {
'quiet': {
'label': 'Tranquilo (solo Alemania)',
'description': 'Prefiere zonas tranquilas (solo disponible para Alemania)',
}
},
'surface_quality_known': {
'label': 'Sólo superficies con calidad conocida',
'description': 'Fuerza el uso solo de los bordes donde la calidad de la superficie se conoce explícitamente',
},
'allow_unsuitable': {
'label': 'Permitir inadecuada',
'description': 'Permite el uso de bordes que podrían no ser adecuados para sillas de ruedas que antes estaban excluidos',
},
'vehicle_type': {
'label': 'Tipo de vehículo',
'description': 'Tipo de vehículo a considerar para el cálculo de la ruta',
}

}
}
}
14 changes: 13 additions & 1 deletion src/resources/i18n/ors-map-filters.i18n.fr-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,19 @@ export default {
'quiet': {
'label': 'Calme (Allemagne uniquement)',
'description': 'Préfère les zones calmes (uniquement disponible pour l\'Allemagne)',
}
},
'surface_quality_known': {
'label': 'Uniquement des surfaces de qualité connue',
'description': 'Force l\'utilisation des seules arêtes dont la qualité de surface est explicitement connue',
},
'allow_unsuitable': {
'label': 'Permettre inadéquat',
'description': 'Permet l\'utilisation de bords qui pourraient ne pas convenir aux fauteuils roulants qui étaient auparavant exclus',
},
'vehicle_type': {
'label': 'Type de véhicule',
'description': 'Type de véhicule à considérer pour le calcul d\'itinéraire',
}
}
}
}
14 changes: 13 additions & 1 deletion src/resources/i18n/ors-map-filters.i18n.hu-hu.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,19 @@ export default {
'quiet': {
'label': 'Csendes (csak Németországban)',
'description': 'A csendes területeket részesíti előnyben (csak Németországban érhető el)',
}
},
'surface_quality_known': {
'label': 'Csak ismert minőségű felületek',
'description': 'Csak olyan élek használatát kényszeríti ki, ahol a felület minősége kifejezetten ismert'
},
'allow_unsuitable': {
'label': 'Nem megfelelő',
'description': 'Lehetővé teszi olyan élek használatát, amelyek esetleg nem alkalmasak a korábban kizárt kerekesszékekhez'
},
'vehicle_type': {
'label': 'Jármű típus',
'description': 'Az útvonal kiszámításakor figyelembe veendő jármű típusa',
}
}
}
}
18 changes: 15 additions & 3 deletions src/resources/i18n/ors-map-filters.i18n.it-it.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
orsMapFilters: {
profiles: {
'profiles': {
'cycling-regular': 'Bici',
'cycling-road': 'Bici da corsa',
'cycling-electric': 'E-bike',
Expand All @@ -18,7 +18,7 @@ export default {
'forestry': 'Autocarro agricolo',
'goods': 'Autocarro da beni'
},
filters: {
'filters': {
'preference': {
'label': 'Preferenza itinerario',
'description': 'Fattore preferito da considerare quando viene calcolato l\'itinerario',
Expand Down Expand Up @@ -184,7 +184,19 @@ export default {
'quiet': {
'label': 'Silenzioso (solo Germania)',
'description': 'Preferisce zone tranquille (disponibile solo per la Germania)',
}
},
'surface_quality_known': {
'label': 'Solo superfici con qualità nota',
'description': 'Impone l\'uso dei soli bordi in cui la qualità della superficie è esplicitamente nota',
},
'allow_unsuitable': {
'label': 'Consentire inadeguato',
'description': 'Consente l\'utilizzo di bordi che potrebbero non essere adatti a sedie a rotelle precedentemente escluse',
},
'vehicle_type': {
'label': 'Tipo di veicolo',
'description': 'Tipo di veicolo da considerare per il calcolo del percorso',
}
}
}
}
14 changes: 13 additions & 1 deletion src/resources/i18n/ors-map-filters.i18n.pt-br.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,19 @@ export default {
quiet: {
label: 'Silencioso (apenas Alemanha)',
description: 'Prefere áreas tranquilas (disponível apenas para Alemanha)',
}
},
surface_quality_known: {
label: 'Somente superfícies com qualidade conhecida',
description: 'Força o uso apenas de quinas onde a qualidade da superfície é explicitamente conhecida',
},
allow_unsuitable: {
label: 'Permitir inadequado',
description: 'Permite o uso de quinas que podem ser inadequadas para cadeira de rodas que anteriormente eram excluídas',
},
vehicle_type: {
label: 'Tipo de veículo',
description: 'Tipo de veículo a ser considerado para o cálculo da rota',
}
}
}
}

0 comments on commit daa1799

Please sign in to comment.