brouter-web/js
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
..
control Wrap long URLs in custom layers overlay 2023-06-02 08:06:55 +02:00
format Add BL and TLU to VoiceHints as contained in BRouter 1.7.2 2023-07-05 06:26:07 +00:00
plugin Don't filter points of GeoJSON layer (#727) 2023-05-17 12:27:23 +02:00
router Fix hash formatting for POI at 0,0 2023-05-17 13:02:47 +02:00
util Don't filter points of GeoJSON layer (#727) 2023-05-17 12:27:23 +02:00
Browser.js Work around iOS 3rd party browser download (#418) 2022-05-28 14:27:32 +02:00
index.js Add "Help" dialog which shows available keyboard shortcuts 2023-06-11 09:21:13 +02:00
LayersConfig.js Implement simplestyle for GeoJSON 2023-04-20 22:45:13 +02:00
Map.js Merge pull request #497 from nrenner/68-sl-routing 2022-05-12 16:26:00 +02:00
Util.js Determine country rules by enclosing boundary 2021-01-23 12:43:13 +01:00
WhatsNew.js Avoid what's new content blinking 2021-03-26 16:19:33 +01:00