A method for collecting data for a geographic database is disclosed. Altitude
data
are collected using a vehicle traveling in a geographic region. A barometer associated
with the vehicle supplies the altitude data. Road grade data along the roads traveled
by the vehicle is derived by analyzing the altitude data. The geographic database
is updated to indicate the road grade.