Cody is a city in northwest Wyoming and the county seat of Park County, Wyoming, United States. It is named after Colonel William Frederick "Buffalo Bill" Cody for his part in the creation of the original town. The population was 9,520 at the 2010 census. It has been claimed as one of the best small towns in the USA.Cody is served by Yellowstone Regional Airport.GeographyCody is located at .According to the United States Census Bureau, the city has a total area of 10.43sqmi, of which, 10.20sqmi is land and 0.23sqmi is water.Cody's elevation is about 5016 ft above sea level. The main part of the city is split across three levels, separated by about 60 feet .The Shoshone River flows through Cody in a fairly deep canyon. There are four bridges over this river in the Cody vicinity, one at the north edge of town that allows travel to the north, and one about east of Cody that allows passage to Powell and the areas to the north and east. The other two are west of town; one allows access to the East Gate of Yellowstone National Park, and the other is used by fishermen in Shoshone Canyon and as access to the Buffalo Bill Dam.Cody is located at the western edge of the Bighorn Basin, a depression surrounded by the Big Horn, Owl Creek, Bridger, and Absaroka ranges. At the western edge of Cody, a deep canyon formed by the Shoshone River provides the only passage to Yellowstone's Eastern Entrance. At its mouth and rising above Cody are Rattlesnake Mountain on the north side and Cedar Mountain on the south side. Most of Cody has a spectacular view of Heart Mountain, whose 8,123ft peak is directly north of Cody, and the Carter Mountains, which form a line with peaks at about 12000ft, some to the south.