implemnted k-nearest stations