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); routingParamCollector.setParams(rc, waypoints, theParams);
if (params.containsKey("extraParams")) { Map<String, String> profileParamsCollection = null;
Map<String, String> profileparams = null;
try { try {
profileparams = routingParamCollector.getUrlParams(params.getString("extraParams")); if (profileParams != null) {
routingParamCollector.setProfileParams(rc, profileparams); profileParamsCollection = routingParamCollector.getUrlParams(profileParams);
routingParamCollector.setProfileParams(rc, profileParamsCollection);
}
} catch (UnsupportedEncodingException e) {
// ignore
}
if (params.containsKey("extraParams")) {
try {
profileParamsCollection = routingParamCollector.getUrlParams(params.getString("extraParams"));
routingParamCollector.setProfileParams(rc, profileParamsCollection);
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
// ignore // ignore
} }