In Scotland:
"If asked to
do so,
you must
give your name, address, date and place of birth and nationality to the officer.
You may also be asked for an explanation of
your behaviour. If
you give false information or refuse to answer,
you are committing an offence for which
you could be arrested and charged."
Here is the source ...
https://www.citizensadvice.org.uk/s...rch-enter-private-property-and-seize-goods-s/
In London:
A police officer who has reasonable grounds for suspicion can stop and detain you in order to conduct a search. There should be a basis for that suspicion based on facts, information, and/or intelligence which are relevant to the likelihood of finding an article of particular kinds.
The detention may only last for as long as it is reasonably required to permit a search. Reasonable force may be used if you are first given the opportunity to cooperate and then refuse.
An officer may ask you: What you are up to? Your name? Your address? Your date of birth?
You DO NOT have to give these unless the officer has pointed out an offence he/she suspects you have committed."
Here is the source ...
https://www.london.gov.uk/sites/default/files/know_your_rights_z-card.pdf
My advice was (and still is) to
ALWAYS give your name and address if requested. Failing to give your name and address
could be construed as "a suspicious act" which gives the Police a right to stop, search and (if required) arrest someone.
On the other hand, if you want to be a total prat then refuse, stand by what you believe and take the consequences!