Here’s a screenshot of that post @abrambailey links to above for those who may not want to click on it
- it looked a bit spammy to me. . (edited: that came across a bit strong. sorry about that)
We use SSO with WordPress and thanks to @AdamCapriola already have API code for adding/removing users to certain discourse groups via WordPress. One answer to this use case might be to create location-based discourse groups, also managed via the API. Users could then look at the group members list to see who is in the same location as themselves, and be given permission to mention people in their own location in discussions or to start personal messages.
Alternatively, this plugin could be extended to create a discourse group for that location to it and add the user to it. You’d probably want to be careful not to create hundreds of groups that mean nothing because they have nobody in them.
This can lead to information overload in some instances so you’d want to be careful how you set this up. For example mentioning
@kenya in my community would lead to hundreds of notifications if you also disable some other safeguards around mentioning.