adding distance field to locations