A method of detecting a roadway edge and/or a traffic lane on a roadway includes: acquiring at least one image of surroundings of a vehicle with a camera; detecting a driving corridor from the at least one image; and performing a structure detection on the at least one image while taking the determined driving corridor into consideration in order to determine a course of a roadway edge from the at least one image.