However, if it is necessary to enter a dwelling, the judicial police officer must obtain prior consent, given by any means :
1° In the cases provided for in 1° of article 230-33, from the liberty and custody judge, referred to for this purpose by the public prosecutor;
2° In the cases provided for in 2° of the same article 230-33, from the investigating judge or, if the entry is to take place outside the hours provided for in Article 59, the juge des libertés et de la détention, referred for this purpose by the investigating judge.
These judges have twenty-four hours in which to issue a written order for the operations to continue. In the absence of such authorisation within this period, the geolocation shall be terminated. In the cases provided for in the first paragraph of this article, the authorisation shall include a statement of the factual circumstances establishing the existence of the imminent risk referred to in the same paragraph.
The authorisation shall also include a statement of the reasons for the imminent risk.

