A smartphone-based energy saving navigation system