Starting the 21st of June there will freedom of movement within Spain meaning that, regardless of where you live, you will be able to travel to any point in the country.
The Health Minister, Salvador Illa, however, said that anybody suffering from coronavirus-like symptoms should not leave their house, much less travel across the country. They should put themselves in quarantine and inform the medical authorities.
(News: Spain)
