prepare for searchroute api, just need to put the endpoint in getsearchroutes() in ajaxrequests.js