diff --git a/DataStructures/ExtractorCallBacks.h b/DataStructures/ExtractorCallBacks.h index 6a8a49050..0f25f2bf8 100644 --- a/DataStructures/ExtractorCallBacks.h +++ b/DataStructures/ExtractorCallBacks.h @@ -21,11 +21,14 @@ or see http://www.gnu.org/licenses/agpl.txt. #ifndef EXTRACTORCALLBACKS_H_ #define EXTRACTORCALLBACKS_H_ +#include +#include + +#include #include #include #include -#include #include "ExtractorStructs.h" typedef stxxl::vector STXXLNodeIDVector; @@ -85,9 +88,10 @@ private: return matched; } - inline int parseMaxspeed(const std::string& input) const { + inline int parseMaxspeed(std::string input) const { //call-by-value on purpose. + boost::algorithm::to_lower(input); int n = atoi(input.c_str()); - if (input.find("mph") != std::string::npos || input.find("MPH") != std::string::npos || input.find("mp/h") != std::string::npos) { + if (input.find("mph") != std::string::npos || input.find("mp/h") != std::string::npos) { n = (n*1609)/1000; } return n;