diff --git a/src/opendrive_planner.cpp b/src/opendrive_planner.cpp
index 72bdbdf595b5c5cc8c7a363ec2f425674b828990..5c16cdeabc402f70b9718d0742125c0d4f3d6609 100644
--- a/src/opendrive_planner.cpp
+++ b/src/opendrive_planner.cpp
@@ -175,7 +175,7 @@ void OpendriveGlobalPlanner::create_opendrive_map(std::string &filename,double r
   this->full_path_.header.stamp = ros::Time::now();
   this->full_path_.info.map_load_time = ros::Time::now();
   this->full_path_.info.resolution = resolution;
-  road.get_segment_geometry(x,y,heading);
+  road.get_lane_geometry(x,y,heading);
   for(unsigned int i=0;i<x.size();i++)
   {
     if(x[i]>max_x)