Changed isOnRoute logic to spacial reference