use profile parameter
This commit is contained in:
parent
ebd06681a7
commit
5e68bfdf69
1 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue