Perhaps the most difficult part of road tripping across the U.S. is figuring out where to start. In order to visit all 48 states in the contiguous U.S., some serious planning is in order. Luckily, for those looking to set out to explore America, an algorithm has already been calculated to help you hit big cities, National Natural Landmarks, National Historic Sites, National Parks, or National Monuments in each state.

With the hard work out of the way, you can customize your road trip using this Python code. Planning this way requires that you know exactly which landmarks or cities you will be stopping at. Besides doing all of the stressful calculations for you, this algorithm allows you to start anywhere on the map as long as you follow it from then on with no detours.

Once you’ve mapped out your destinations, all you need is a car and about two to three months to soak in all that America has to offer. Customize your own road trip or follow the guides for a road trip stopping at popular U.S. cities or stopping at major U.S. landmarks.

This originally appeared at Fusfoo brings millennials and generation Z thoughtful and smart content worth reading that is written with passion and honesty. Fusfoo is dedicated to providing valuable news and stories that facilitate change, creativity, growth and unity. We want to help you not only find answers, but to ask questions that no one else is asking.