Fixed a bug in the nearestTo route for tags and changed the route