ATLANTIC CITY -- Three New York City men were arrested after being caught with $1 million in fentanyl-laced heroin in an Atlantic City parking lot, authorities said.

Edwin Gomez, 31 and Steven Torres, 24, both of Brooklyn, and Steven Rodriguez, 22, of Queens, were planning to deliver 7.7 pounds of heroin to a location on the beach block of St. James Place when they were taken into custody about 1 p.m. on Thursday, the New Jersey Attorney General's Office announced Tuesday.

From left: Steven Rodriguez, Edwin Gomez and Steven Torres.

Authorities learned that drug traffickers were shipping heroin from Mexico City to New York City, some of which was then delivered to Atlantic City, officials said.

The heroin was seized from the trunk of a car, officials said. It's valued at $300,000 if sold in bulk or about $1 million if cut, packaged and sold on the street, according to the attorney general's office.

All three men face charges of first-degree possession of heroin with intent to distribute, second-degree conspiracy to distribute heroin and second-degree possession of heroin with intent to distribute within 500 feet of the Atlantic City Boardwalk. They face decades in prison if convicted of all charges.

The investigation was led by U.S. Immigration and Custom Enforcement's Homeland Security Investigations with help from Atlantic City Task Force.

The Atlantic City Task force is led by a State Police sergeant and a Little Egg Harbor detective.

Jeff Goldman may be reached at jeff_goldman@njadvancemedia.com. Follow him on Twitter @JeffSGoldman. Find NJ.com on Facebook.