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);
|
||||
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue