I did something similar for my teenager son when he travelled abroad.
I didn't want to embarass him with calls like "where are you now?", so using Erel's example code (Background location tracking as recalled by
@Peter Simpson ) as a base I devised my own solution based on my own server.
The UI allowed him to turn off tracking (I love freedom so much for myself that I can't negate it to others..)
Honestly, today I'll do it differently. I will send an FCM (Firebase Cloud Message) message and have the terminal reply sending its coordinates to my server.
Anyway, key point seems to be that, at the moment, you're not out to code it yourself, so
@OliverA solution could be a first step.