Fixed issue with distance calculation with TypedRouter.