use profile parameter

This commit is contained in:
afischerdev 2025-06-19 10:09:58 +02:00
parent ebd06681a7
commit 5e68bfdf69

View file

@ -100,11 +100,19 @@ public class BRouterWorker {
}
routingParamCollector.setParams(rc, waypoints, theParams);
Map<String, String> profileParamsCollection = null;
try {
if (profileParams != null) {
profileParamsCollection = routingParamCollector.getUrlParams(profileParams);
routingParamCollector.setProfileParams(rc, profileParamsCollection);
}
} catch (UnsupportedEncodingException e) {
// ignore
}
if (params.containsKey("extraParams")) {
Map<String, String> profileparams = null;
try {
profileparams = routingParamCollector.getUrlParams(params.getString("extraParams"));
routingParamCollector.setProfileParams(rc, profileparams);
profileParamsCollection = routingParamCollector.getUrlParams(params.getString("extraParams"));
routingParamCollector.setProfileParams(rc, profileParamsCollection);
} catch (UnsupportedEncodingException e) {
// ignore
}