(6371*ACOS(SIN(latitude)*SIN("+lat+")*COS(longitude-"+lng+")+COS(latitude)*COS("+lat+"))*"+Math.PI+")/180