Function for getting history of station