use DistanceMatrixService object instead of ajax call