edited to work with nearest-stations