Questions tagged [proximity]

A proximity (sensor) is a sensor able to detect the presence of nearby objects without any physical contact.

Proximity sensing is the ability of a device to tell when it is near an object, or when something is near it. This sense keeps a device from running into things. It can also be used to measure the distance from a device to some object.

456 questions
22
votes
2 answers

Exact Meaning of "Slop" in Lucene SpanNearQuery (or slop in ElasticSearch span_near)

Question 1: In Lucene's SpanNearQuery (or span_near in ElasticSearch), what is the exact meaning of slop? Is it the number of words separating the two matching words, or is it the separating number of words plus 1? For example, suppose your indexed…
speedplane
  • 15,673
  • 16
  • 86
  • 138
21
votes
3 answers

Proximity Search

How does an application perform a proximity search? For example, a user types in a postal code, then the application lists all the businesses within 20 miles ordered by proximity. I want to build something like that in PHP and MySQL. Is this…
John
  • 32,403
  • 80
  • 251
  • 422
20
votes
4 answers

Using proximity sensor in android

I want to use proximity sensor in my project. I searched for proximity sensor tutorial. And I found a sensor tutorial at http://www.vogella.com/articles/AndroidSensor/article.html#sensoroverview_manager. I tried to use proximity sensor as following…
Sanjay Joshi
  • 2,036
  • 6
  • 33
  • 48
20
votes
13 answers

iPhone Proximity Sensor

Can the iPhone SDK take advantage of the iPhone's proximity sensors? If so, why hasn't anyone taken advantage of them? I could picture a few decent uses. For example, in a racing game, you could put your finger on the proximity sensor to go instead…
Greg
  • 45,306
  • 89
  • 231
  • 297
17
votes
1 answer

Maximum number of peripherals on CoreBluetooth?

I am interested in working with BLE proximity sensor on iOS and have been looking up for a few answers to my query but could not find any solid ones. 1) Is there a maximum number of BLE slaves the CoreBluetooth can handle? 2) Will the slaves…
Cheng
  • 279
  • 3
  • 13
16
votes
5 answers

Keep display on when the proximity sensor is covered

I want to intercept the proximity sensor without turning off the display. I know by the documentation that I have two Bool variables: proximityMonitoringEnabled proximityState and this code [UIDevice currentDevice].proximityMonitoringEnabled =…
Simone Pistecchia
  • 2,746
  • 3
  • 18
  • 30
15
votes
6 answers

Is it possible to detect Android devices laying side by side

I am developing an Android application that requires devices to be laid side by side and/or above and below each other. I know I can use the Nearby API to detect devices "Nearby" however I need something a little more "Finer Grained". My app needs…
Hector
  • 4,016
  • 21
  • 112
  • 211
13
votes
3 answers

Proximity Search using phrases in Solr

I use Solr's proximity search quite often to search for words within a specified range of each other, like so "Government Spending" ~2 I was wondering is there a way to perform a proximity search using a phrase and a word or two phrases. Is this…
Ruth
  • 5,646
  • 12
  • 38
  • 45
12
votes
5 answers

Proximity alert for locations saved at server

I did some search but could not find a suitable answer. My App should compare with multiple locations for proximity. This means I will not be able to save all the locations into my app to confirm the proximity using locationManager. I want the…
Ham Dong Kyun
  • 756
  • 4
  • 28
11
votes
1 answer

Determine Android phone's proximity to known point while conserving power

I am trying to determine if an Android user has had a close proximity to a list of predetermined locations. I'd like to do this with the least amount of drain on the phone's battery. The two mechanisms I see for accomplishing this are proximity…
ahsteele
  • 26,243
  • 28
  • 134
  • 248
11
votes
0 answers

Detect if the phone is in pocket or not

This question is not exactly about code but rather implementation. I am working on an app that requires to check if the phone is in pocket or not. I have a simple algorithm to detect user steps when walking. The problem is movement in hand can also…
Dumbo
  • 13,555
  • 54
  • 184
  • 288
11
votes
3 answers

Detect proximity using Bluetooth LE "Proximity" profile Android

Problem definition: I've been trying to use BLE proximity profile for Bluetooth LE on Android. Some of the devices like new generation Google Nexus tablet with 4.3 Android support BLE and can act as a central device. I read the Android official…
Shobhit Puri
  • 25,769
  • 11
  • 95
  • 124
11
votes
7 answers

Filter zipcodes by proximity in Django with the Spherical Law of Cosines

I'm trying to handle proximity search for a basic store locater in Django. Rather than haul PostGIS around with my app just so I can use GeoDjango's distance filter, I'd like to use the Spherical Law of Cosines distance formula in a model query. I'd…
spiffytech
  • 6,161
  • 7
  • 41
  • 57
11
votes
6 answers

BTLE (Bluetooth Low energy) development kit - must have proximity profile

Can anyone point me towards a tried and tested development kit (board) for Bluetooth Low Energy? I am especially interested in the proximity profile, and compatibility with smartphone (especially iPhones and Android devices - but also any other…
Radu
  • 2,076
  • 2
  • 20
  • 40
10
votes
1 answer

Order table by proximity to specific latitude/longitude (using MySQL+PHP)

MySQL (table) id | url | lat | lng ---------------------------------- 1 | x | 44.339565 | -101.337891 ---------------------------------- 2 | y | 44.150681 | -101.074219 ---------------------------------- 3 | z | 43.897892 |…
user317005
1
2 3
30 31