Fixing mph parsing
This commit is contained in:
parent
1ce21556a1
commit
c0141a9744
@ -135,7 +135,10 @@ public:
|
||||
std::string ref( w.keyVals.Find("ref"));
|
||||
std::string junction( w.keyVals.Find("junction") );
|
||||
std::string route( w.keyVals.Find("route") );
|
||||
int maxspeed( atoi(w.keyVals.Find("maxspeed").c_str()) );
|
||||
std::string speedlimit = w.keyVals.Find("maxspeed");
|
||||
int maxspeed( atoi(speedlimit.c_str()) );
|
||||
if(speedlimit.find("mph") != std::string::npos || speedlimit.find("mp/h") != std::string::npos)
|
||||
maxspeed *= 1.609;
|
||||
std::string access( w.keyVals.Find("access") );
|
||||
std::string accessTag( w.keyVals.Find(settings.accessTag) );
|
||||
std::string man_made( w.keyVals.Find("man_made") );
|
||||
|
Loading…
Reference in New Issue
Block a user