A navigation system provides information about railroad crossing
locations. A geographic database used by the navigation system includes
data that indicate whether an at-grade railroad crossing is located along
a road segment. Using this information, a route calculation function in
the navigation system calculates a route to a destination that avoids
road segments that have at-grade railroad crossings. In this way, the
delays associated with waiting for a train to cross a road are avoided.