Smart car method for autonomous navigation by creating a 3D model based on outputs of the camera and sensor; accessing a high definition map database and generating a trip with travel segments from origin to destination; detecting a freeway entrance or an exit lane based on a road marking using a camera and a sensor; if the travel segment passes the freeway entrance or exit, then follow the current lane without exiting; and otherwise following the freeway entrance or exit.