Safari browser can use the gps API on an iPhone, I’m not sure about Android. You could create code that attaches user meta to a logged in user and save the gps coordinates then filter members list by distance.
There are a couple location plugins but those are address based in which you enter address into profile fields. They do not update your current info.
So yes it’s doable but no plugin currently exists.