Heather Harget has been using the Facebook group to communicate with other parents whose children are in Morocco. Her own daughter, Colleen Mader, has been involved in a State Department-backed exchange program in Rabat for about six months and was going to return home to Maryland on Tuesday, after her program, along with other study abroad programs, was cut short. Ms. Mader’s flight was canceled when the ban on international travel was announced on Sunday.

“A lot of us are just wondering if other countries are doing this for their citizens, why haven’t we heard anything from ours?” said Ms. Bell, the creator of the “maybe we can help each other” Facebook group.

Ms. Eden, the woman who is pregnant, said she has been teaching English in Morocco for two months. She was taken to a hospital by an American woman and her daughter in Casablanca after she felt sick on Tuesday.

“Yesterday, I felt contractions, I was in pain and was worried that I was going to have a miscarriage,” she said. “Today I didn’t feel any contractions but I felt extremely tired and sick. I was scared enough to agree to someone taking me to a hospital here.”

The State Department, in its email, did not elaborate on any plans it might have to help the stranded Americans get home. “We are aware the governments of several countries have announced suspension of air travel,” it said. “We are considering all options to assist U.S. citizens in these countries and are continuously assessing travel conditions in all areas affected by COVID-19. We will continue to update our travel advisories and safety information for U.S. travelers as situations evolve.”

It also advised Americans to follow guidance from the Centers for Disease Control and Prevention (C.D.C.) and local health authorities, review its travel advisories at Travel.State.Gov, and enroll in the Smart Traveler Enrollment (STEP) program at step.state.gov for updates from the department.

Morocco is just one of many countries that have put travel restrictions in place with little warning, essentially trapping some travelers. In Peru, which announced plans to shut down travel to and from the country earlier this week, thousands of travelers from across the world found themselves stranded, with their flights canceled and little idea how to get home.