Commit graph

1327 commits

Author SHA1 Message Date
afischerdev
f96b83750e
Merge pull request #587 from afischerdev/app-ui-update
Add a silent mode for app start
2023-07-12 11:38:44 +02:00
Henrik Fehlauer
d98b1060d4
Explicitly map internal voice hint ids to external JSON API ids
As c9ae7c8 showed, changing internal ids without being aware of the
possible impact might easily lead to break the external API.

While ids could be fixated by adding respective tests, an even more
elegant solution is to make the mapping from internal ids to external
ids explicit, similar how it is already done for other voice hint
formats.

To underline the purpose of the mapping even more, the
respective method is renamed appropriately.

Test Plan:
  - `./gradlew test`
  - Export a complex route in BRouter-Web and check voice hints have not
  been changed.
2023-07-12 08:59:12 +00:00
Henrik Fehlauer
82fecf95f6
Revert voice hint indexing change in JSON API to restore compatibility
a9e8731 made voice hints available from `formatAsGeoJson()`, which is
used both in the GeoJSON HTTP API and in the JSON Java API. To indicate
a specific type of voice hint, it was chosen to include its numeric id
in the output JSON array among other data. The full list of available
ids was defined in `class VoiceHint`, e.g. `static final int C = 1;`.

Consumers of the API now depended on the mapping from id to intended
voice hint not changing, since otherwise incorrect voice hints could be
displayed. Unfortunately that API contract was broken in c9ae7c8, where
instead of assigning unused ids to new commands, the meaning of existing
ids was changed. This broke compatibility: Clients adapted to the change
did not work with the old indexing anymore, and clients not yet adapted
would break with newer BRouter releases, e.g. they would suddenly
display "Off route" for a "right u-turn".

To restore compatibility, the indexing is reverted to its old state.

This will unbreak GeoJSON/JSON API users no yet adapted to BRouter 1.7.0
or 1.7.1, e.g. BRouter-Web as well as unmaintained clients. While API
users which already patched ids would need to undo or special-case their
changes, the impact is believed to be low, as no such users are
currently known and the breakage was released only recently.

The changed meaning of `TU` in output formats (before: `u-turn-left`,
now: `u-turn-180`) has not been reverted for now, since either that
command is mapped to fallback solutions anyway (e.g. Orux, old Locus,
Gpsies), the change has already been implemented in clients (new Locus,
Cruiser) or was only planned to be implemented in the future (OsmAnd).

Fixes #584

Test Plan:
  - `./gradlew test`
  - Run BRouter with an unpatched BRouter-Web and confirm voice hint
  ids have been restored to the same ones as emitted by BRouter 1.6.3.
2023-07-11 17:57:14 +00:00
afischerdev
bcc028606a update Android doc 2023-07-10 18:19:01 +02:00
afischerdev
6084db93d3 new version 1.7.1 2023-07-10 18:18:10 +02:00
afischerdev
993a3aa859
Merge pull request #579 from afischerdev/profiles-update
Update profiles for new db tags
2023-07-10 18:05:15 +02:00
afischerdev
c02ebecf65 add doc for silent mode 2023-07-10 12:12:03 +02:00
afischerdev
0fbf6ea096 add a silent mode for app start 2023-07-10 12:00:01 +02:00
afischerdev
086503e529
Merge pull request #586 from afischerdev/app-download
Fixed some smaller app problems
2023-07-10 11:07:37 +02:00
afischerdev
565cdde223
Merge pull request #583 from afischerdev/find-points
Find matching points in areas with longer distance between way points
2023-07-10 11:01:14 +02:00
afischerdev
94e29852d0
Merge pull request #582 from afischerdev/app-ui-update
Add portrait mode to app
2023-07-10 10:56:38 +02:00
afischerdev
9a8fd48418
Merge pull request #581 from afischerdev/app-problem
Fixed error in single download
2023-07-10 10:53:38 +02:00
afischerdev
62595b2553 move migration away from ui thread 2023-07-09 18:35:10 +02:00
afischerdev
9a029af8dd protect against limited data size 2023-07-09 18:22:25 +02:00
Arndt Brenschede
58e9ec301b changed db-tag-processing to csv-file 2023-07-09 15:39:55 +02:00
afischerdev
20ee509d39 basedir sometimes not filled 2023-07-09 14:56:42 +02:00
afischerdev
6cc5ae7717 change from StatFs to File 2023-07-09 14:54:50 +02:00
Arndt Brenschede
60c99500fa changed db-tag-processing to csv-file 2023-07-09 14:52:35 +02:00
Arndt Brenschede
30f548096b changed db-tag-processing to csv-file 2023-07-09 14:48:09 +02:00
afischerdev
cc265269e6 change finish route parameters 2023-07-08 18:17:06 +02:00
afischerdev
36dcc88a85 update test lookup with estimated_*_class 2023-07-08 11:33:38 +02:00
afischerdev
5628b885e2 update consider description 2023-07-08 11:20:03 +02:00
afischerdev
b2abdd720f update order to costfactor 2023-07-08 10:59:36 +02:00
afischerdev
89b71c2bfb update trekking for db tags 2023-07-08 10:57:43 +02:00
afischerdev
488d37b070 used greater diff value 2023-07-08 09:57:50 +02:00
afischerdev
daa33e3d34 give a second chance when wpt not found 2023-07-08 09:56:40 +02:00
afischerdev
9b2a2b2b0a add portrait mode to app 2023-07-07 18:32:11 +02:00
afischerdev
fc1e2ebc35 fixed error in single download 2023-07-07 16:15:09 +02:00
afischerdev
e66468b091 update profiles for new db tags 2023-07-06 13:45:44 +02:00
abrensch
79aa07ae84
Merge pull request #573 from abrensch/constant_exp_opti
optimizing constant expressions in profile parsing
2023-07-06 13:05:13 +02:00
Arndt Brenschede
65953faec0 constant expressions: reworks keyvalue-injection, unit-test 2023-07-05 19:07:14 +02:00
Arndt Brenschede
18f2cb548f changed db-tag-processing to csv-file 2023-07-03 08:24:42 +02:00
Arndt Brenschede
c109caac2a changed db-tag-processing to csv-file 2023-07-02 10:19:23 +02:00
Arndt Brenschede
21b0431a1a changed db-tag-processing to csv-file 2023-07-02 09:46:38 +02:00
Arndt Brenschede
1a2bb197d1 issue#572: filter out on_red turn restrictions 2023-07-02 08:32:43 +02:00
afischerdev
cada37b4de
Merge pull request #570 from Totorrr/profiles-oneway-bicycle-leftright
Also consider cycleway:left:oneway & cycleway:right:oneway in onewaypenalty
2023-06-29 11:39:59 +02:00
Arndt Brenschede
de0acb77c5 optimizing constant expressions in profile parsing 2023-06-25 12:51:10 +02:00
Totorrr
df19fcf891 Also consider cycleway:left:oneway & cycleway:right:oneway in onewaypenalty 2023-06-13 00:54:17 +02:00
afischerdev
ef73d468c0
Merge pull request #562 from afischerdev/app-problem
App error in parsing int
2023-06-06 11:41:27 +02:00
afischerdev
99eba591fa prevent parse int error 2023-06-01 18:03:01 +02:00
Arndt Brenschede
8d711bf73a preliminary supress hgt reading in pos-unifier (performace problem) 2023-05-28 21:08:20 +02:00
Arndt Brenschede
f7bce89b7c pseudo-tags from DB, here: preload and use in-memory matching 2023-05-28 19:53:35 +02:00
Arndt Brenschede
bfe1f4a6a4 pseudo-tags from DB, here: preload and use in-memory matching 2023-05-28 19:25:42 +02:00
abrensch
624edc63ee
Merge pull request #556 from afischerdev/jdbc-import
Works for me, but performance test for planet processing still running. Maybe I'll change to prelaod Database Info and matching against a memory map, but I first merge and do eventual changes in a new PR
2023-05-28 14:05:25 +02:00
afischerdev
6158c44d82 reformat sql by hand 2023-05-24 14:12:51 +02:00
afischerdev
f702100e8a rework database routine 2023-05-24 11:46:25 +02:00
afischerdev
72195d3b4c reformat lua 2023-05-24 11:33:32 +02:00
afischerdev
7e57824d9f mark optional parameter 2023-05-23 12:01:01 +02:00
afischerdev
4fbe368f2a rename function 2023-05-23 11:57:13 +02:00
afischerdev
7ce31e3c16 remove comment, set standard out 2023-05-23 11:54:39 +02:00