Vehicle speed detection in a navigation system