Hi,
I found an example of how this might be implemented:
Do realize that users will be requested to share location as this is not something that can be demanded. If they refuse, it won't work.
If this is not what you're looking for please create a Reprex so we can get a better idea.
Good luck
PJ