From 4d3edd0571c846ed2c3c7c2071c680dcd7d61416 Mon Sep 17 00:00:00 2001 From: afischerdev Date: Fri, 31 Mar 2023 15:10:26 +0200 Subject: [PATCH] update interface list for server and app --- .../src/main/aidl/btools/routingapp/IBRouterService.aidl | 2 +- .../main/java/btools/server/request/ServerHandler.java | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/brouter-routing-app/src/main/aidl/btools/routingapp/IBRouterService.aidl b/brouter-routing-app/src/main/aidl/btools/routingapp/IBRouterService.aidl index 1b15baf..ed1dde7 100644 --- a/brouter-routing-app/src/main/aidl/btools/routingapp/IBRouterService.aidl +++ b/brouter-routing-app/src/main/aidl/btools/routingapp/IBRouterService.aidl @@ -23,7 +23,7 @@ interface IBRouterService { // variantes: lon,lat,d|... (from this point to the next do a direct line) // lon,lat,name|... (route point has a name and should not be ignored) // "straight" = idx1,idx2,.. (optional, minimum one value, index of a direct routing point in the waypoint list) - // "nogos" = lon,lat,radius|... (optional, radius in meters) + // "nogos" = lon,lat,radius,weight|... (optional, list of lon, lat, radius in meters, weight (optional)) // "polylines" = lon,lat,lon,lat,...,weight|... (unlimited list of lon,lat and weight (optional), lists separated by |) // "polygons" = lon,lat,lon,lat,...,weight|... (unlimited list of lon,lat and weight (optional), lists separated by |) // "profile" = profile file name without .brf diff --git a/brouter-server/src/main/java/btools/server/request/ServerHandler.java b/brouter-server/src/main/java/btools/server/request/ServerHandler.java index 2e158c3..426f5be 100644 --- a/brouter-server/src/main/java/btools/server/request/ServerHandler.java +++ b/brouter-server/src/main/java/btools/server/request/ServerHandler.java @@ -20,13 +20,19 @@ import btools.server.ServiceContext; * Parameters: *

* lonlats = lon,lat|... (unlimited list of lon,lat waypoints separated by |) - * nogos = lon,lat,radius|... (optional, radius in meters) + * nogos = lon,lat,radius,weight|... (optional, list of lon, lat, radius in meters, weight (optional) separated by |) + * polylines = lon,lat,lon,lat,...,weight|... (unlimited list of lon,lat and weight (optional), lists separated by |) + * polygons = lon,lat,lon,lat,...,weight|... (unlimited list of lon,lat and weight (optional), lists separated by |) * profile = profile file name without .brf * alternativeidx = [0|1|2|3] (optional, default 0) * format = [kml|gpx|geojson] (optional, default gpx) * trackname = name used for filename and format specific trackname (optional, default brouter) * exportWaypoints = 1 to export them (optional, default is no export) * pois = lon,lat,name|... (optional) + * timode = turnInstructionMode [0=none, 1=auto-choose, 2=locus-style, 3=osmand-style, 4=comment-style, 5=gpsies-style, 6=orux-style, 7=locus-old-style] default 0 + * heading = angle (optional to give a route a start direction) + * profile:xxx = parameter in profile (optional) + * straight = idx1,idx2,.. (optional, minimum one value, index of a direct routing point in the waypoint list) *

* Example URLs: * {@code http://localhost:17777/brouter?lonlats=8.799297,49.565883|8.811764,49.563606&nogos=&profile=trekking&alternativeidx=0&format=gpx}