I'm not familiar with app engineering, but wouldn't the location access be enough for that?
I'm currently on the 11th floor of a building. GPS accuracy in the vertical dimension is much worse than horizontal. A bluetooth beacon will tell you if I'm in the same room with someone else.