Commit graph

69 commits

Author SHA1 Message Date
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
Marcus Jaschen
3b3357c473
Share Dialog with QR Code (#729) 2023-05-16 11:31:32 +02:00
Norbert Renner
32107759e2 Re-add fetch polyfill (#727)
Removed in #367, but core-js does not include fetch, and eslint-plugin-compat just doesn't seem to complain when inside an if block.
2023-05-08 17:15:58 +02:00
Norbert Renner
3a6f8dccc1 Replace IRC link with Matrix
as nobody answers on IRC and Matrix bridge forwards to closed room.
2023-02-21 12:29:37 +01:00
Marcus Jaschen
492797f2a5
Add OpenStreetMap Notes Layer (#458)
* use a local variable (best practices)

* Add OpenStreetMap notes as overlay.

This commit adds a new layer which renders OpenStreetMap notes in the
current view.

The layer can be activated via the "More" button in the layers sidebar.

Fixes #439
2021-11-17 20:03:07 +01:00
Marcus Jaschen
819d1d1fc3
update license information for BRouter (#425) 2021-06-02 20:35:32 +02:00
Norbert Renner
1330317f1d Merge branch 'master' into 68-sl-formatting 2021-04-10 12:48:10 +02:00
Norbert Renner
393a3fa129 Cleanup and credits 2021-04-09 11:52:51 +02:00
Stefan Siegl
b3d07d10b2
List make/temaki in credits/licenses 2021-04-03 21:54:45 +02:00
Stefan Siegl
7532488a02
Add overpass-layer (first sketches) 2021-03-19 11:45:22 +01:00
Norbert Renner
0ee37f557a
Add Babel and core-js & regenerator polyfills (#367) 2021-02-12 10:07:02 +01:00
Gautier P
db87c170be Add CONTRIBUTING.md 2020-06-07 22:59:51 +02:00
Gautier P
40af115bf1 Update leaflet-triangle-marker dependency to fix leaflet incompatibility 2020-03-12 21:50:11 +01:00
Sascha Hagedorn
c8d5e79d66 Fix typo 2020-01-30 12:14:00 +01:00
Sascha Hagedorn
ea895da29d Add description for running as Docker container 2020-01-30 11:34:55 +01:00
Norbert Renner
5c1713d9bd Remove chmod install step, set execution flag, retained in zip 2020-01-21 19:56:43 +01:00
Norbert Renner
e73938f4e3 Update readme installation instructions for standalone zip 2020-01-17 12:25:01 +01:00
Norbert Renner
a038f0448d
Merge branch 'master' into feature/distance-marker 2019-10-10 20:04:14 +02:00
matzepan
bc480af774
Merge branch 'master' into feature/distance-marker 2019-10-10 19:48:03 +02:00
Unknown
8d0dda5175 Added license information 2019-10-10 19:36:16 +02:00
Unknown
173752c691 Added distance markers to the routing path 2019-10-02 14:23:27 +02:00
Unknown
1096467339 Added license information 2019-09-17 12:35:12 +02:00
Norbert Renner
9076e1efd3 Update brouter.de links to https 2019-09-05 12:05:29 +02:00
Gautier Pelloux-Prayer
6b2bc7028b Replace watch by serve command with livereload 2019-09-02 20:05:11 +02:00
Gautier Pelloux-Prayer
2f2ad86e4c Add link to #brouter@OFTC 2019-05-23 21:03:39 +02:00
Gautier Pelloux-Prayer
970a34981f Add prettier and reformat code 2019-05-17 20:55:39 +02:00
Norbert Renner
f01df99bc6 Remove Transifex widget that is not working 2019-05-04 17:59:47 +02:00
Norbert Renner
2257ac095a Include Promise and fetch polyfills, mainly to support IE 11 (#161) 2019-05-01 21:45:54 +02:00
Norbert Renner
468b20ecc2 Add license references 2019-04-30 20:42:17 +02:00
Gautier Pelloux-Prayer
f54d72644b translate via i18next 2019-02-26 18:02:02 +01:00
Norbert Renner
70a0f73d12 Update readme build dependencies + yarn.lock 2019-02-14 10:39:59 +01:00
Gautier Pelloux-Prayer
ed79f03ebe Replace bower with npm (#116) 2019-02-13 22:32:43 +01:00
Norbert Renner
f0c8764df5 Update readme 2018-10-11 10:56:17 +02:00
Norbert Renner
eaf0c672b5 Add credits 2018-09-24 17:53:29 +02:00
Norbert Renner
4c9600d794 Update copyright date 2018-09-08 19:59:50 +02:00
Norbert Renner
59827a524f Restore (short) attribution on the map, closes #110 2018-07-03 20:41:26 +02:00
Norbert Renner
1393860148 BRouter v1.4.10: additional profiles in distribution; update versions 2018-03-08 11:44:09 +01:00
Norbert Renner
69e53233ba Replace Leaflet.draw with Leaflet.Editable, closes #100 2018-01-12 15:38:47 +01:00
Norbert Renner
b83d04b327 a 2017-07-21 11:13:48 +02:00
Gautier Pelloux-Prayer
9109322905 Use https scheme whenever possible, to avoid mixed content issues 2017-05-09 22:14:39 +02:00
Gautier Pelloux-Prayer
4e19946b96 Oops, missing scheme 2017-05-03 22:18:16 +02:00
Gautier Pelloux-Prayer
36bbef8146 Add brouter.damsy.net as public demo instance for mobile version 2017-05-03 22:14:57 +02:00
Norbert Renner
3cc0a3b9ee Add stable release and master build requirement to install instructions 2017-03-22 21:46:21 +01:00
Gautier Pelloux-Prayer
86b7bc186c gulp: don't uglify in debug mode 2016-11-30 20:04:24 +01:00
Norbert Renner
b108efae5c switch icons to Font Awesome (for now) 2016-10-01 12:30:30 +02:00
Norbert Renner
a9f2b0cb18 add keys.js to configure API keys instead of specific ajax loading 2016-09-22 12:06:18 +02:00
Norbert Renner
935c21ecfb better emphasize that backend is by @abrensch 2016-08-03 11:16:05 +02:00
Norbert Renner
d015a29e61 add RestoreView and Locate plugin credits 2016-08-03 11:00:37 +02:00
Norbert Renner
4b8dcca6ef License: 2016 + "and contributors" 2016-08-03 10:54:43 +02:00
Norbert Renner
5a486fb417 update readme installation to segments4 and v1.4.1 2016-05-10 12:06:47 +02:00