paragraph_text: President James Madison, military officials, and his government fled the city in the wake of the British victory at the Battle of Bladensburg. They eventually found refuge for the night in Brookeville, a small town in Montgomery County, Maryland, which is known today as the ``United States Capital for a Day. ''President Madison spent the night in the house of Caleb Bentley, a Quaker who lived and worked in Brookeville. Bentley's house, known today as the Madison House, still stands in Brookeville.

paragraph_text: It spans the Deep River in North Carolina, United States between the hamlets of Gulf in Chatham County and Cumnock in Lee County in a quiet rural setting amid woods and farmlands on both sides of the river. It was originally constructed in 1901. The bridge is listed on the National Register of Historic Places. The bridge is open to pedestrian traffic only. Vehicles may use a replacement bridge located about a hundred yards east of the historic structure.

paragraph_text: The Bridges of Madison County is a 1995 American romantic drama film based on the best - selling novel of the same name by Robert James Waller. It was produced by Amblin Entertainment and Malpaso Productions, and distributed by Warner Bros. Entertainment. The film was produced and directed by Clint Eastwood with Kathleen Kennedy as co-producer and the screenplay was adapted by Richard LaGravenese. The film is about an Italian war bride, Francesca (Meryl Streep), who lives with her husband and two children on a farm in Iowa. In 1965, she meets a National Geographic photographer named Robert (Eastwood) and has a four - day extramarital affair with him that changes both their lives forever. The film earned $182 million worldwide and was well received by critics. Streep received an Academy Award for Best Actress nomination in 1996 for her performance in the film.

paragraph_text: The United States presidential election of 1812, the seventh quadrennial American presidential election, was held from Friday, October 30, 1812 to Wednesday, December 2, 1812. Taking place in the shadow of the War of 1812, incumbent Democratic-Republican President James Madison defeated DeWitt Clinton, who drew support from dissident Democratic-Republicans in the North as well as Federalists. It was the first presidential election to be held during a major war involving the United States.

paragraph_text: Zilwaukee is a city in Saginaw County in the U.S. state of Michigan. The 2010 Census places the population at 1,658. The city is adjacent to and was created from Zilwaukee Township. It is the home of the Zilwaukee Bridge.

paragraph_text: Almost immediately after achieving territorial status, a clamor arose for statehood. On December 28, 1846, Iowa became the 29th state in the Union when President James K. Polk signed Iowa's admission bill into law. Once admitted to the Union, the state's boundary issues resolved, and most of its land purchased from the Indians, Iowa set its direction to development and organized campaigns for settlers and investors, boasting the young frontier state's rich farmlands, fine citizens, free and open society, and good government.

paragraph_text: The Sevenmile Bridge is a Pratt deck truss bridge bringing a county road over the Rio Grande, southwest of Creede, Colorado, United States. It was designed by engineer King Burghardt and is unusual for its cantilevered ends. It was built in 1935; it then carried State Highway 149. It has also been known as Bridge over Rio Grande River. It was listed on the National Register of Historic Places in 1985.

paragraph_text: The Berry State Aid Bridge spans the Niobrara River in Cherry County, Nebraska near Valentine, Nebraska. It is a historic Pratt through truss bridge that is listed on the National Register of Historic Places.

paragraph_text: The Jersey Bridge is a one-lane, Pratt through truss bridge that spans Oil Creek in Cherrytree Township, Venango County in the U.S. state of Pennsylvania. It connects the city of Titusville to the Drake Well Museum and Oil Creek State Park. The bridge was listed on the National Register of Historic Places in 1988. It was replaced in 1998 with a newer bridge that used the superstructure of the old bridge.

paragraph_text: The Cogan House Covered Bridge is a Burr arch truss covered bridge over Larrys Creek in Cogan House Township, Lycoming County, in the U.S. state of Pennsylvania. It was built in 1877 and is long. The bridge was placed on the National Register of Historic Places in 1980, and had a major restoration in 1998. The Cogan House bridge is named for the township and village of Cogan House, and is also known by at least four other names: Buckhorn, Larrys Creek, Day's, and Plankenhorn.

paragraph_text: Twilight is a census-designated place (CDP) in Boone County, West Virginia, United States. As of the 2010 census, its population was 90. Twilight is approximately 20 miles from Madison. Twilight is accessible from Boone County Route 26, which is located right off West Virginia Route 85 at the Van Bridge split.

paragraph_text: The Grays River Covered Bridge is a one-lane covered bridge over the Grays River in western Wahkiakum County, Washington. It is the only covered bridge still in use as a public highway in Washington State. The bridge was added to the National Register of Historic Places in 1971.

paragraph_text: Weaverland Bridge carries Quarry Road (Township Route 894) across the Conestoga River near Terre Hill, East Earl Township, Lancaster County, Pennsylvania, in the United States. The bridge is notable for its form, a concrete bowstring arch truss. Designer Frank H. Shaw was a consulting engineer to Lancaster County when the bridge was constructed in 1916. Weaverland Bridge was determined to be eligible for the National Register of Historic Places in 1993.

paragraph_text: Harpersfield Bridge is a covered bridge spanning the Grand River in Harpersfield Township, Ashtabula County, Ohio, United States. This double-span Howe truss bridge, one of currently 16 drivable covered bridges in the county, is the third longest covered bridge in Ohio at 228 feet. A flood in 1913 washed away the land at the north end of the bridge, and the steel span was subsequently attached. The bridge features a walkway, added during its renovation in 1991-92. The bridge also features an Ashtabula County MetroPark at its north end, and is listed on the National Register of Historic Places. The bridge's WGCB number is 35-04-19, and it is located approximately south of Geneva.

paragraph_text: Lost Bridge Village is a census-designated place in Benton County, Arkansas, United States. Its population was 434 as of the 2010 census.

paragraph_text: This is intended to be a complete list of the properties on the National Register of Historic Places in Madison County, Idaho, United States. Latitude and longitude coordinates are provided for many National Register properties and districts; these locations may be seen together in a map.

paragraph_text: Midway is a city in Madison County, Texas, United States at the junction of the La Bahía Road (now Texas State Highway 21) and the Old San Antonio Road in northeastern Madison County.

paragraph_text: Lafayette is a census-designated place in the center of Deer Creek Township, Madison County, Ohio, United States. It is located at , along U.S. Route 40, just west of its intersection with U.S. Route 42.

paragraph_text: Madison Township is a township in Lackawanna County, Pennsylvania, United States. The population was 2,750 at the 2010 census. Quicktown is part of Madison Township.

paragraph_text: The Madison Candy Company is located in Madison, Wisconsin, United States. It was added to the National Register of Historic Places in 1997.

Question: Who was president when the area where the Bridges of Madison County was set, became a state?
Answer: President James K. Polk