1. A method for mapping a railroad track, said method comprising: the following steps carried out by a processor: defining a plurality of track segments that form the railroad track; determining coordinates of each track segment, and landmarks and switches positioned between adjacent track segments; storing the coordinates of each track segment in a database as map segments; linking the map segments stored in the database to create a multi-dimensional railroad track map, and based on the coordinates of the landmarks and switches; determining current coordinates of the track segment; comparing the current coordinates of the track segment to coordinates stored in the database to determine if a current position of the track segment has changed; updating the multi-dimensional map based on a change in the current position of the track segment; and defining the plurality of track segments by changes in direction of the railroad track.