diff --git a/include/osm/osm_common.h b/include/osm/osm_common.h index 921e276d4c7768c91d7e0c040e91b2084cd613b1..843ffcc27e1c43f141539c0016cecb165f24d800 100644 --- a/include/osm/osm_common.h +++ b/include/osm/osm_common.h @@ -1,7 +1,7 @@ #ifndef _OSM_COMMON_H #define _OSM_COMMON_H -#define DEFAULT_LANE_WIDTH 3.0 +#define DEFAULT_LANE_WIDTH 4.0 #define DEFAULT_MIN_RADIUS 5.0 #define MIN_ROAD_LENGTH 0.5 diff --git a/src/osm/osm_way.cpp b/src/osm/osm_way.cpp index 5b97dfcbdfef54257a4c63056d4836f98bc0c3c0..e07adfe28af8245eccd017b0eb4b6fe958dc25d8 100644 --- a/src/osm/osm_way.cpp +++ b/src/osm/osm_way.cpp @@ -84,11 +84,12 @@ COSMWay::COSMWay(const osmium::Way &way,COSMMap *parent) this->num_backward_lanes=std::stoi(std::string(value)); } // get the road width - value=way.get_value_by_key("width"); - if(value==NULL) - this->lane_width=-1.0; - else - this->lane_width=std::stof(std::string(value))/(this->num_forward_lanes+this->num_backward_lanes); +// value=way.get_value_by_key("width"); +// if(value==NULL) +// this->lane_width=-1.0; +// else +// this->lane_width=std::stof(std::string(value))/(this->num_forward_lanes+this->num_backward_lanes); + this->lane_width=DEFAULT_LANE_WIDTH; // get the lane constraints this->load_lane_restrictions(way); // create and add the way