add distancematrix API. Cleanup