No description
Find a file
Henrik Fehlauer 3f241c9180
Add BL and TLU to VoiceHints as contained in BRouter 1.7.2
abrensch/brouter@c9ae7c8681 added support for two new voice hints: A
hint for beelines (`BL`), and a hint for 180 degree u-turns (`TU`). By
adding support for both, we now know about all types of voice hints as
defined in BRouter again.

What makes things confusing is that the `TU` name for the respective
`static final int` constant in BRouter's `VoiceHint.java` was repurposed
for 180 degree u-turns, with left u-turns now being mapped to the new
`TLU` constant name. Also note that originally the indexing of voice
hints as used in BRouter's GeoJSON API has been changed as well due to
inserting new commands in the middle of the numbering scheme instead of
at the end. This API break has been fixed only in
abrensch/brouter@82fecf9. Here we will rely on the fixed indexing,
BRouter versions 1.7.0 and 1.7.1 without the re-indexing revert will not
be supported.

In addition, the voice hint mapping table has been checked to be
identical to BRouter (this led to adding a missing `OFFR` symbol), and
clarifying comments for planned future changes (e.g. changing the `TU`
output token to `TLU` for OsmAnd) have been added.

Note that beelines and 180 degree u-turns are only added to the mapping
table for completeness. As BRouter-Web is handling straight lines on the
client-side exclusively (which makes sense performance-wise when loading
a route from a pasted URL with lots of them tracing an unmapped path),
they are not expected to be in any GeoJSON response from BRouter, at
least as of now. The same is true for 180 degree u-turn voice hints at
cul-de-sac-style vias. If and when to emit voice hints for both cases in
BRouter-Web itself is a different question, though it could likely also
use the table for lookup.

Test Plan:
  - `yarn test`
  - Confirm voice hints for routes with roundabouts and u-turns are
  unchanged.
2023-07-05 06:26:07 +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 Add BL and TLU to VoiceHints as contained in BRouter 1.7.2 2023-07-05 06:26:07 +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 Update dependency @fortawesome/fontawesome-free to v6.4.0 (#741) 2023-06-22 10:06:14 +02:00
README.md Share Dialog with QR Code (#729) 2023-05-16 11:31:32 +02:00
renovate.json Schedule renovate devDependencies every 2 weeks 2022-08-01 18:59:02 +02:00
yarn.lock Recreate yarn.log after error 2023-06-22 10:43:03 +02: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