separate distance column method in query class (closes #27)