Verhelst
Verhelst

Reputation: 1503

Find users near your position

I'm looking for a way to find users in a certain radius of your position. The reason I need this is because I want to know how many people there are in an area. A possible way I found is to activate the bluetooth and find active devices around.

I want to know if there are other solutions, API, possibilities to do this.

Upvotes: 3

Views: 245

Answers (2)

Alex Paino
Alex Paino

Reputation: 250

Your best bet would probably be with searching for bluetooth devices.

Most phones have a class 2 bluetooth radio which is generally rated at a range of 10 m, but it can very greatly on the environment (for example, you would notice significant packet loss transmitting through even a small amount of water, such as in a person.) On the other side of the coin, the radio could detect devices up to 100 m away if there were nothing but air between the two devices.

The main problem with this is that you would have to require bluetooth to be active, which a lot of users might not have by default.

Upvotes: 1

MikeIsrael
MikeIsrael

Reputation: 2889

There was talk of peer to peer wifi connections, but not sure the status. Would give you some more distance than bluetooth. There is also a library

Can Android do peer-to-peer ad-hoc networking?

there is also a library from qualcomm

https://developer.qualcomm.com/develop/mobile-technologies/peer-peer-alljoyn/faq

Upvotes: 1

Related Questions