route: fix bug when calculating closest points
route: fixed bug that prevented the route's infowindow from opening