Route distance and time mapped to global variables

Not ideal, but it works for now.