added distance measure and sort for nearest location - maybe works