WAKE FOREST, N.C. (AP) -- North Carolina and Virginia are getting $58 million from the federal government to help build out anticipated high-speed passenger rail service between the states' capitals.

The Federal Railroad Administration announced the grant on Thursday.

The money will be used to begin engineering work on a rail corridor connecting Raleigh and Petersburg, Virginia. The high-speed rail will reach north to Richmond.

The two states have been planning since 1992 for such trains and are buying a rail route from CSX Corp.

Gov. Roy Cooper, U.S. Rep. David Price and federal officials held a news conference in Wake Forest to highlight the funding.