route and nClosest working