commit
67bc763188
4 changed files with 47 additions and 5 deletions
|
@ -36,8 +36,8 @@ import btools.util.FrozenLongMap;
|
|||
import btools.util.StringUtils;
|
||||
|
||||
public final class OsmTrack {
|
||||
final public static String version = "1.7.0";
|
||||
final public static String versionDate = "29042023";
|
||||
final public static String version = "1.7.1";
|
||||
final public static String versionDate = "12072023";
|
||||
|
||||
// csv-header-line
|
||||
private static final String MESSAGES_HEADER = "Longitude\tLatitude\tElevation\tDistance\tCostPerKm\tElevCost\tTurnCost\tNodeCost\tInitialCost\tWayTags\tNodeTags\tTime\tEnergy";
|
||||
|
|
|
@ -22,7 +22,7 @@ allprojects {
|
|||
// app: build.gradle (versionCode only)
|
||||
// OsmTrack (version and versionDate)
|
||||
// docs revisions.md (version and versionDate)
|
||||
project.version "1.7.1-beta-1"
|
||||
project.version "1.7.1"
|
||||
group 'org.btools'
|
||||
|
||||
repositories {
|
||||
|
|
|
@ -45,6 +45,41 @@ Profile parameters affect the result of a profile.
|
|||
For the app it is a list of params concatenated by '&'. E.g. extraParams=avoidferry=1&avoidsteps=0
|
||||
The server calls profile params by a prefix 'profile:'. E.g. ...&profile:avoidferry=1&profile:avoidsteps=0
|
||||
|
||||
### using profile parameter inside an app
|
||||
|
||||
To be flexible it is possible to send a profile to BRouter - server or app.
|
||||
|
||||
Another variant is to send parameters for an existing profile that are different from the original profile.
|
||||
|
||||
With the version 1.7.1 it is possible to collect parameters from the profile.
|
||||
The variable parameters are defined like this
|
||||
```
|
||||
assign avoid_path = false # %avoid_path% | Set to true to avoid pathes | boolean
|
||||
```
|
||||
You probably know that from the web client, it builds an option dialog for this.
|
||||
Now you could do that with an calling app.
|
||||
|
||||
What to do to get it work?
|
||||
|
||||
- First copy the [RoutingParam](brouter-routing-app/src/main/java/btools/routingapp/RoutingParam.java) class to your source - use the same name and package name.
|
||||
- Second analyze the profile for which you need the parameter.
|
||||
This [BRouter routine](https://github.com/abrensch/brouter/blob/086503e529da7c044cc0f88f86c394fdb574d6cf/brouter-routing-app/src/main/java/btools/routingapp/RoutingParameterDialog.java#L103) can do that, just copy it to your source to use it in your app.
|
||||
It builds a List<RoutingParam> you could send to BRouter app.
|
||||
- You find the call of BRouter app in comment at [RoutingParameterDialog](https://github.com/abrensch/brouter/blob/086503e529da7c044cc0f88f86c394fdb574d6cf/brouter-routing-app/src/main/java/btools/routingapp/RoutingParameterDialog.java#L33)
|
||||
|
||||
|
||||
### silent app call
|
||||
|
||||
The app can be started from other apps by using a call like this
|
||||
|
||||
```
|
||||
Intent intent = new Intent();
|
||||
intent.setClassName("btools.routingapp", "btools.routingapp.BRouterActivity");
|
||||
intent.putExtra("runsilent", true);
|
||||
startActivity(intent);
|
||||
```
|
||||
|
||||
This suppress the first question after installation for the BRouter path, generates the BRouter folders in main space and starts the download dialog.
|
||||
|
||||
### silent app call
|
||||
|
||||
|
|
|
@ -2,19 +2,26 @@
|
|||
|
||||
(ZIP-Archives including APK, readme + profiles)
|
||||
|
||||
### New since last version
|
||||
### [brouter-1.7.1.zip](../brouter_bin/brouter-1.7.1.zip) (current revision, 12.07.2023)
|
||||
|
||||
Android
|
||||
|
||||
- Add parameter dialog for profile
|
||||
- Add portrait mode for download view
|
||||
- Add silent mode for calling apps
|
||||
- Fixed download lookups.dat when download only single rd5 tile.
|
||||
|
||||
|
||||
Library
|
||||
|
||||
- Update matching points rules on areas with longer distances between way points
|
||||
- Optimize constant expressions in profile parsing
|
||||
- Rework on roundabouts (left-hand driving)
|
||||
- Add new function 'get elevation'
|
||||
- Minor bug fixes
|
||||
|
||||
|
||||
### [brouter-1.7.0.zip](../brouter_bin/brouter-1.7.0.zip) (current revision, 29.04.2023)
|
||||
### [brouter-1.7.0.zip](../brouter_bin/brouter-1.7.0.zip) (29.04.2023)
|
||||
|
||||
Android
|
||||
|
||||
|
|
Loading…
Reference in a new issue