Distance Constraint Satisfaction Problems