swift - Best way to build a proximity app within 200 meter range of the user? -


i using swift develop personal app family , have been researching methods of toolset use build app allows user see other people using same app in vicinity of around 0 - 200meters.

i looking @ bluetooth , trying work out how tinder finds other users. use gps? if how 1 best implement that.

what effective way determine users location within 200 meters?

note: 1 user search surrounding area devices on app - tell user location. doing both, finding distance between 2 locations , how should location. personal use, security issues arent of concern.

as may have expected, have many options of different approaches accomplish goal. suggest start taking @ couple open-source projects:

  1. peerkit
  2. locationchat

both of these libraries demonstrate way transfer payload of data between devices. in addition, both projects provide helpful example apps.

assuming choose use peerkit, each device responsible obtaining own location (via corelocation) , broadcasting other devices (via peerkit). receiving device able calculate distance between , nearby peers.


note: @ time of writing, have not contributed either of projects suggested above.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -