add ConvertLocToAvlsLoc function and use in send function