add --osmfilter option
This commit is contained in:
parent
6473dcdb52
commit
c25d174e60
14 changed files with 185 additions and 30 deletions
|
|
@ -47,6 +47,13 @@ void MotConfigReader::parse(const std::vector<std::string>& paths,
|
|||
std::string secStr = sec.first;
|
||||
if (secStr.empty()) continue;
|
||||
|
||||
if (p.hasKey(secStr, "routing_emission_method")) {
|
||||
cfg.routingOpts.emPenMethod =
|
||||
p.getStr(secStr, "routing_emission_method");
|
||||
} else {
|
||||
cfg.routingOpts.emPenMethod = "exp";
|
||||
}
|
||||
|
||||
if (p.hasKey(secStr, "routing_transition_method")) {
|
||||
cfg.routingOpts.transPenMethod =
|
||||
p.getStr(secStr, "routing_transition_method");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue