Weave through complex networks of roads and railways by knowing when to lean on the gas and when to brake.