mapzen/mapzen-android-demo — pull request #281 by ecgreb (2014-09-08 03:41:58+00:00)
Title: Improve auto-advance and distance calculations

* Rewrites route engine as a state machine.
* Adds special handling for route start, route complete, and lost states.
* Now uses increasing distance to instruction to determine when turn is complete.
* Revises methods for calculating distance to next instruction and destination.