Commit graph

333 commits

Author SHA1 Message Date
Manuel Fuhr
e2752c78bb Remove AndroidManifests for pure java libraries
AGP 8.0 upgrade assistant transforms those to build.gradle instructions which aren't supported for pure java libs
2024-04-03 22:36:30 +02:00
afischerdev
6330325d04
Merge pull request #644 from afischerdev/srtm-gen
Elevation raster generation (*.bef files)
2024-04-03 14:29:34 +02:00
afischerdev
7f880a5826
Merge branch 'master' into rework-voicehint 2024-03-08 12:44:22 +01:00
afischerdev
b9b629185a
Revert "App: Rerouting" 2024-03-08 12:16:13 +01:00
afischerdev
28e6523ab9 wrong last message in track #657 2024-03-06 19:57:12 +01:00
afischerdev
09248679db
Merge branch 'master' into rerouting 2024-03-03 18:20:44 +01:00
afischerdev
531f913c5b
Merge pull request #665 from afischerdev/rework-voicehint
Rework on voicehints
2024-03-03 18:17:27 +01:00
afischerdev
b2009cf7e8 more on roundabout #664 2024-02-20 12:00:59 +01:00
afischerdev
f1e5732dc2 removed throw exception #671 2024-02-17 10:45:42 +01:00
Emux
6427dab483
Error reading rawTrack: do not throw exception, fix #671 2024-02-12 15:18:55 +02:00
afischerdev
91ccb858dd undo tmp gpx name 2024-01-30 18:31:34 +01:00
afischerdev
b3002a78e3 rework for vh on roundabouts #664 2024-01-30 18:12:51 +01:00
afischerdev
1bf367b43e allow multiple segments for rerouting 2024-01-19 16:40:56 +01:00
afischerdev
e5ecd14ce1 prepare rerouting 2024-01-19 16:37:29 +01:00
afischerdev
ae7411d4a0 added nogo for heading calc 2024-01-19 10:16:42 +01:00
simdens
2f1422352e
Add "DIVIDE" command and new "maxslope" and "maxslopecost" parameters (#642)
* Added 'DIV' expression for profiles

* Added 'uphillmaxbuffercost' and 'downhillmaxbuffercost' parameter. This makes it possible to penalize very steep path sections

* Added 'div by zero' check in BExpression.java DIV command

* Simplify maxbuffercostdiv logic

* Added documentation about new features

* Fix typo

* Rename new DIV command

* Redesign the new commands
- Allow to set both the maxslope and the maxslopecost in the way context separately for uphill and downhill
- New names for the new commands that better reflect what they actually do

* Adapt the profile developers guide to the latest changes

* Improve wording

---------

Co-authored-by: quaelnix <122357328+quaelnix@users.noreply.github.com>
2024-01-17 16:34:52 +01:00
afischerdev
e73d0e8001 change for voicehint list second step 2023-12-22 18:25:09 +01:00
afischerdev
01ac57a929 change for voicehint list first step 2023-12-22 18:09:44 +01:00
afischerdev
c5f158ec43 calls with transport mode 2023-12-22 18:05:07 +01:00
afischerdev
c31c38a5d6 added transport mode param, switch morestraight logic 2023-12-22 17:56:48 +01:00
afischerdev
0f8bdfee6c switch gpx name to point name - temp only 2023-12-22 17:52:15 +01:00
afischerdev
f405b0e16e switch to numeric transport mode 2023-12-22 17:51:04 +01:00
afischerdev
4c310bf4b4
Merge branch 'abrensch:master' into rework-voicehint 2023-12-10 14:19:49 +01:00
afischerdev
068a5ff714 use elevation type for filter value 2023-11-28 15:17:51 +01:00
afischerdev
cb0b1d8855 removed unused formatting 2023-11-21 14:05:19 +01:00
afischerdev
8a7fa9fa81 changes for engineMode 2 2023-11-21 13:26:05 +01:00
afischerdev
fcbaf598aa moved some format routines 2023-11-21 13:00:39 +01:00
afischerdev
ad3db9c004 updated output for command line 2023-11-20 17:33:09 +01:00
afischerdev
c47444e0f8 enabled functions for public 2023-11-20 17:09:14 +01:00
afischerdev
56dbd52065 added new format classes 2023-11-20 17:08:20 +01:00
afischerdev
c07454a8ba enable new post process on voicehints 2023-10-06 14:57:46 +02:00
afischerdev
90cc045404 moved string control to app worker 2023-10-05 12:48:06 +02:00
afischerdev
3acb0b1fdb updated doc entries 2023-09-30 11:13:57 +02:00
afischerdev
fe08674632 added test if nogo array exists 2023-09-30 11:04:34 +02:00
afischerdev
42f0ac6627 added app specific vars 2023-09-30 11:01:21 +02:00
afischerdev
6b3cfb4c91 added a parameter test 2023-08-24 10:06:00 +02:00
afischerdev
ed7f473556 added one place for parameter 2023-08-24 10:05:38 +02:00
afischerdev
5ed5259912 reworked command line start 2023-08-24 10:04:08 +02:00
afischerdev
dad4ea583c change version number 2023-08-17 18:03:03 +02:00
afischerdev
71dfbac13c check for NPE on badWays 2023-07-31 10:24:14 +02:00
afischerdev
f14b8795ea change new version number and date 2023-07-18 12:53:27 +02:00
afischerdev
22cf0bba68
Merge pull request #594 from rkflx/PR/only-revert-voicehint-reindexing
Revert voice hint reindexing
2023-07-17 12:49:07 +02:00
afischerdev
3706c0cb57 update to new beta version 2023-07-16 12:52:47 +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
6084db93d3 new version 1.7.1 2023-07-10 18:18:10 +02:00
afischerdev
cc265269e6 change finish route parameters 2023-07-08 18:17:06 +02:00
afischerdev
488d37b070 used greater diff value 2023-07-08 09:57:50 +02:00
Arndt Brenschede
de0acb77c5 optimizing constant expressions in profile parsing 2023-06-25 12:51:10 +02:00
Manuel Fuhr
d508337d7e Fix tests with elevation data 2023-05-22 13:54:14 +02:00