Alarm activated by location

Suppose you want to activate an alarm that is activated once a certain location is reached. There is something capable of this already in Samsung S9, for example.