On the 27th of March as part of the National Emergency effort the government passed a law that permits them to establish where we are by using GPS systems on our mobile phones.
They are going to use this to make sure we do not move between the different regions of Spain.
It sounds unbelievable but it is true and here is the full text of the Royal Decree.