Pleasanton is a city in Alameda County, California, incorporated in 1894. It is a suburb in the San Francisco Bay Area located about 25 miles (40 km) east of Oakland, and 6 miles (9.7 km) west of Livermore. The population was 70,285 at the 2010 census. In 2005 and 2007, Pleasanton was ranked the wealthiest middle-sized city in the United States by the Census Bureau. Pleasanton is home to the headquarters of Safeway Inc. and Polycom. Although Oakland is the Alameda County seat, a few county offices and a courthouse are located in Pleasanton. Additionally, the main county jail is in the neighboring city of Dublin. The Alameda County Fairgrounds are located in Pleasanton, and the annual County Fair is held there during the last week of June and the first week of July. Shadow Cliffs Regional Park is located on the east side of town.