Parsing via points from URL
This commit is contained in:
parent
9ffe6ccb6a
commit
717d25cad0
@ -71,9 +71,15 @@ public:
|
|||||||
std::string o = item.substr(found+1);
|
std::string o = item.substr(found+1);
|
||||||
if("jsonp" != p)
|
if("jsonp" != p)
|
||||||
std::transform(o.begin(), o.end(), o.begin(), (int(*)(int)) std::tolower);
|
std::transform(o.begin(), o.end(), o.begin(), (int(*)(int)) std::tolower);
|
||||||
|
if("via" == p ) {
|
||||||
|
if(25 >= routeParameters.viaPoints.size()) {
|
||||||
|
routeParameters.viaPoints.push_back(o);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
routeParameters.options.Set(p, o);
|
routeParameters.options.Set(p, o);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// std::cout << "[debug] found handler for '" << command << "' at version: " << pluginMap.Find(command)->GetVersionString() << std::endl;
|
// std::cout << "[debug] found handler for '" << command << "' at version: " << pluginMap.Find(command)->GetVersionString() << std::endl;
|
||||||
// std::cout << "[debug] remaining parameters: " << parameters.size() << std::endl;
|
// std::cout << "[debug] remaining parameters: " << parameters.size() << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user