What skuhn said. That is what the solution the Norwegian and Danish government is implementing is supposedly doing. Reporting the GPS data back to a central server. If you’re using iPhone.
https://www.simula.no/news/digital-contact-tracing-qa#How%20...?