LOS ANGELES (CBSLA) – A federal judge Friday issued a preliminary order requiring the city of Los Angeles to relocate thousands of homeless people living near Los Angeles freeway structures.

Under the order from U.S. District Judge David Carter, anyone camping near freeway overpasses and underpasses, and near entrance and exit ramps, must be relocated for health and safety reasons.

READ MORE: George W. Bush To Speak in Beverly Hills, Long Beach

“Because of the public health risks inherent in living near freeways, the court finds that the homeless individuals that live in such locations face a likelihood of irreparable harm, justifying a preliminary injunction,” Carter wrote.

READ MORE: Biker With Several Felony Warrants Arrested In Westminster

Unless an alternative plan is approved, the order will be enforced starting at noon May 22, according to City News Service.

As many as 7,000 people live under or near the county’s freeway overpasses,underpasses and ramps, up to 4,000 of whom are located in the city and couple of hundred in unincorporated areas.

MORE NEWS: Thousands Help In Massive Beach Cleanup Effort Saturday

The judge added that while the health risks constitute “an emergency and demand a swift response”, he invited input from city and county officials prior to the preliminary injunction taking effect next Friday.