modified routedetails api