added closest stop api