Skip to content

Conversation

@aoles
Copy link
Member

@aoles aoles commented May 7, 2025

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, as illustrated in the following screens.

Before

image

After

image

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 7, 2025

@aoles aoles requested a review from Copilot May 8, 2025 09:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new road access restriction type "permit" and updates the corresponding color palette and internationalization support across multiple languages.

  • Added a new dictionary entry for the "permit" restriction in ors-dictionary.js.
  • Updated the color palette in the roadaccessrestrictions block with a new 'permit' color.
  • Provided translations for the new "permit" type in several locale files and the translation source.

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/resources/ors-dictionary.js Added 'permit' key and updated color palette for road access restrictions.
src/resources/i18n/ors-dictionary.i18n.ro-ro.js Added translation for permit.
src/resources/i18n/ors-dictionary.i18n.pt-br.js Added translation for permit.
src/resources/i18n/ors-dictionary.i18n.it-it.js Updated translations for permit and adjusted permissive wording.
src/resources/i18n/ors-dictionary.i18n.hu-hu.js Added translation for permit.
src/resources/i18n/ors-dictionary.i18n.fr-fr.js Updated translations for permit and adjusted permissive wording.
src/resources/i18n/ors-dictionary.i18n.es-es.js Added translation for permit.
src/resources/i18n/ors-dictionary.i18n.en-us.js Added translation for permit.
src/resources/i18n/ors-dictionary.i18n.de-de.js Added translation for permit.
src/resources/i18n/ors-dictionary.i18n.cs-cz.js Updated translations for permit and adjusted permissive wording.
docs/en-translation-source-merged.json Updated translation source with permit key.
Comments suppressed due to low confidence (1)

src/resources/ors-dictionary.js:82

  • Ensure that unit tests are updated or added to cover the new 'permit' restriction type and its integration with the color palette logic.
    '64': 'permit'

Copy link
Collaborator

@TheGreatRefrigerator TheGreatRefrigerator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@TheGreatRefrigerator TheGreatRefrigerator merged commit 1e028c6 into main May 8, 2025
4 of 5 checks passed
@TheGreatRefrigerator TheGreatRefrigerator deleted the feat/add_roadaccessrestriction_permit branch May 8, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants