I'm not sure I understand your question, but I used euclidean distance instead of the real geographical distance.