Generate tripinfo automatically