Start of the vehicle->location-fn function.