According to the United States Census Bureau, the city has a total area of 9.5square miles (24.7Square kilometers), of which, 9.3square miles (24.0Square kilometers) of it is land and 0.2squaremiles (0.6Square kilometer) of it (2.52%) is water. Cody is served by Yellowstone Regional Airport.The Shoshone River flows through Cody in a fairly deep canyon. Cody is a city in Park County, Wyoming, United States. It is named after William Frederick Cody, primarily known as Buffalo Bill, from William Cody's part in the creation of the original town. The population was 9,520 at the 2010 census. It is the county seat of Park County.