added function to get details of a poi