added distance to json response and grid