It would take about 3 years and 28,270 miles.

By Lindsey Campbell
October 22, 2016
The Snooty Fox public house, Tetbury, Cotswolds. Gloucestershire, England, UK,. (Photo by: GeographyPhotos/UIG via Getty Images)
Geography Photos / Contributor

Thanks to a team of mathematicians at the University of Waterloo in Canada beer-loving tourists and locals alike in the UK can embark on the ultimate adventure: the world’s longest pub crawl.

The route, meticulously plotted out on Google Maps, shows the quickest course to take in order to hit all 24,727 pubs listed on The entire adventure, which brings you from The Green Shutters in Portland to The Rodwell in Weymouth, will take an estimated 3 years to complete, if you only have 1 pint at each stop.

The tour runs through major cities like Belfast, Cambridge and Nottingham, bringing travelers a total distance of 28,270 miles—slightly longer than the earth’s circumference. The time between stops varies throughout each leg of the tour, the longest being 270 miles (don’t worry, that includes ferry rides too!), but averages about one stop every hour.

The university team, led by Professor William Cook, took on the record-breaking route as part of the two-year project—a project not really meant for optimizing beer aficionados time between stops, but also “as a means for developing and testing general-purpose optimization methods,” according to their website. It’s an example of a “traveling salesman problem” which is meant to find the shortest route that passes through each point only once.