How to compare 2 devicetracker coordinates

I wolud like to get a notification when my car, connected with Skoda connect integration, is not near my phone AND the car is outside the “home” zone. Simplified, i want to have a notification if someone other than me drive my car.
I thought about proximity-sensor, but how to compare devicetracker.car with my phone ?

UPDATE:
This seems to work the way i want:

{{ (distance(‘device_tracker.CAR’, ‘device_tracker.MY_PHONE’) * 100) | round(1) }}

IF the car is moving AND distance between MY_PHONE ↔ CAR is more than 10 meters, then send alert

Try this
Templating - Home Assistant (home-assistant.io)

1 Like

In what format do you get the coordinates?
Decimal or degrees:mm:ss ?

Thanks.
You made my day