No description
Find a file
Henrik Fehlauer eeb1c5bde3
Emit console warning when using an unsupported BRouter version
abrensch/brouter@c9ae7c8681 changed indexing of voice hint ids, because
some new hints were inserted in the middle instead of strictly at the
end, changing the numbering of existing ids. For example, now id `12`
was sent to indicate a right u-turn, while we still assume the old
meaning of `12`, i.e. "off route". This clearly was an API break.

This leads us to abort exporting with the Gpsies turn instructions
style, since `OFFR` has an `undefined` symbol assigned, as well as
emitting wrong voice hints for ids after `9`. Another unwelcome side
effect is showing negative exit numbers for roundabouts.

This breakage in the GeoJSON HTTP API has been shipping in BRouter 1.7.0
and 1.7.1 and finally got fixed with abrensch/brouter@82fecf9 contained
in BRouter 1.7.2 or later. Earlier releases like 1.6.3 are also
unaffected. To avoid emitting incorrect voice hints in BRouter-Web,
running with broken versions of BRouter should be avoided.

By checking the "Creator" field after receiving the first response from
BRouter, we can now emit a warning if the version of BRouter used is
unsupported. The warning mostly targets administrators and power users,
i.e. those responsible for choosing the software versions used, and it
is also only shown once per session.

Note that the version check is compatible with the common "SemVer"
scheme, so the check should continue working and even support more
complex version compatibility scenarios as long as BRouter stays
SemVer-compliant.

Ref #751

Test Plan:
  - Run with BRouter 1.6.3 and 1.7.2, no warnings shown.
  - Run with BRouter 1.7.0 and 1.7.1, warnings shown only for the first
  segment.
2023-07-06 09:46:47 +00:00
.github/workflows Ignore renovate branches for push events 2023-02-23 10:26:24 +01:00
.husky Migrate to husky 8 2022-07-25 16:45:19 +02:00
.tx Migrate Transifex config by new CLI client 2023-05-19 21:55:29 +02:00
.vscode remove 'msjsdiag.debugger-for-chrome' 2023-06-18 10:28:50 +02:00
css Add "Help" dialog which shows available keyboard shortcuts 2023-06-11 09:21:13 +02:00
js Emit console warning when using an unsupported BRouter version 2023-07-06 09:46:47 +00:00
layers add overpass layer for bicycle charging (fixes #690) 2023-06-11 09:45:03 +02:00
locales Fix duplicate i18n keys and update locale (#735) 2023-06-16 16:54:45 +02:00
resources Determine country rules by enclosing boundary 2021-01-23 12:43:13 +01:00
tests Add GPX link (brouter#152) 2022-08-02 20:02:23 +02:00
.eslintignore Switch scripts to module because of node-fetch v3 2022-07-14 17:19:46 +02:00
.eslintrc.json Share Dialog with QR Code (#729) 2023-05-16 11:31:32 +02:00
.gitignore Add gulp task to generate a standalone release zip from brouter repo 2019-12-19 21:27:31 +01:00
.prettierignore Merge branch 'master' into 68-sl-formatting 2021-04-10 12:48:10 +02:00
.prettierrc Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
babel.config.js Added new export as FIT file format fixes #322 2022-09-14 21:02:50 +02:00
CHANGELOG.md Update changelog for 0.18.1 2022-06-29 10:24:52 +02:00
config.template.js Add GPX link (brouter#152) 2022-08-02 20:02:23 +02:00
CONTRIBUTING.md Migrate Transifex config by new CLI client 2023-05-19 21:55:29 +02:00
docker-compose.yml Update Docker configs 2021-11-21 10:34:05 +01:00
Dockerfile Update Docker configs 2021-11-21 10:34:05 +01:00
gulpfile.js enable reloading when contents of layers are changed (in serve mode) (#567) 2022-06-25 11:14:01 +02:00
index.html Fix duplicate i18n keys and update locale (#735) 2023-06-16 16:54:45 +02:00
INSTALL.md Updated INSTALL.md (mkdir command) (#697) 2023-02-17 09:17:08 +01:00
keys.template.js Add IGNF Scan25 baselayer (requires key) (#643) 2022-09-28 21:03:04 +02:00
LICENSE Update copyright date 2018-09-08 19:59:50 +02:00
package.json Emit console warning when using an unsupported BRouter version 2023-07-06 09:46:47 +00:00
README.md Emit console warning when using an unsupported BRouter version 2023-07-06 09:46:47 +00:00
renovate.json Schedule renovate devDependencies every 2 weeks 2022-08-01 18:59:02 +02:00
yarn.lock Emit console warning when using an unsupported BRouter version 2023-07-06 09:46:47 +00:00

brouter-web

Web client (by @nrenner and contributors) for the BRouter routing engine (by @abrensch).

demo

Instances:

This repository is only about the frontend.

For the server/backend, BRouter routing engine, Android app, profiles, brouter.de site, see:
https://github.com/abrensch/brouter

More information:
https://brouter.de

Contact

General BRouter discussions/questions, support:

Translating

Translations are managed using the Transifex platform. After signing up, you can go to BRouter's project page, select a language and click Translate to start translating.

Installation

See INSTALL.md for guidance on installation.

Build

See CONTRIBUTING.md for development documentation.

License

Copyright (c) 2018 Norbert Renner and contributors, licensed under the MIT License (MIT)

Credits and Licenses