proximity

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 of taking up screen real-estate with your thumb. Of course though, if this was your only ...

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 approach correct? 1) get the addresses for locations I'm interested in and store in my databa...

How best to perform corridor range search over a set of latitude / longitude coordinates

Hi, What would be the best approach to finding the set of coordinates, from say about 5,00, which lie within a path of points, given a specified width. eg an aircraft following several waypoints. Is there a good way to also sort them in the same order as the route. Calculation speed would be more important than accuracy, since I'm l...

Regional Proximity UI

I'm developing a UI (AJAX-enabled; LAMP server) which will allow a user to designate regions in which a company operates. A "region" in this case may be a state (if dealing with the US) a province (Canada), or entire country (everyone else). As there are 195 countries in the world, I would like to avoid a multi-select box or list of che...

toggling proximity sensor on iPhone loses an event

I'm using setProximitySensingEnabled and implemented proximityStateChanged in my UIApplication subclass. It looks like if sensing is toggled, that the first "off" event is being lost. My UIApplication class is pretty basic... -(void)proximityStateChanged:(BOOL)state { NSLog(state ? @"ON" : @"OFF"); } In my application delegate, I ...

How to test proximity of lines (Hough transform) in OpenCV

(This is a follow-up from this previous question). I was able to successfully use OpenCV / Hough transforms to detect lines in pictures (scanned text); at first it would detect many many lines (at least one line per line of text), but by adjusting the 'threshold' parameter via trial-and-error, it now only detects "real" lines. (The 'th...

Proximity search with Google maps

I'm developing a store location application. Looking up a store, it currently shows the location in googlemaps based on address and zip code. Now I want to build a function which also shows other shops within 500 meter radius. To do this, I have to do a proximity search / calculation. My biggest question, is how I should approach this...

How to implement proximity search with postcode?

Hi, I have to use proximity search with postcode for Australia. Going through some links like http://www.randommouse.com/rms/about/product/FNDRY/docs/tutorial/08/how-to-add-google-maps-to-your-review-site-intro.html I found that I have to manage the the post codes with latitude and longitude if I am not mistaken. But i could not fin...

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 like all of the calculations to be done in the database in one query, for efficiency. A...

Lucene SpanNearQuery partial matching

Good day, Given a document {'foo', 'bar', 'baz'}, I want to match using SpanNearQuery with the tokens {'baz', 'extra'} But this fails. How do I go around this? Thanks, Franz Sample test (using lucene 2.9.1) with the following results: givenSingleMatch - PASS givenTwoMatches - PASS givenThreeMatches - PASS givenSingleMatch_andExtra...

Searching by Zip Code proximity - MySql

I'm having some trouble getting a search by zip code proximity query working. I've search and searched google but everything I find is either way too slow or I can't get working. Here's the issue: I have a database with a table with all the US Zip Codes (~70,500 of them), and I have a table of several thousand stores (~10,000+), which...

MYSQL - Retrieve Results by Date Proximity

Hi All! ;-) my question is: assuming we have a calendar_table with UNIX datestamp date_column, i want retrieve the event with the closest proximity to the today date. So, for example if there is no event today, keep the closest one based on it's date! UPDATED probably i need to be more clear, i need to retrieve not just one event, b...

Mapkit +closest annotation

Hi all, I am trying to devellopp an app showing the nearest poi to the users location. My app is now capable of: showing a map (Mapkit) with 110 annotations and the user's location. Furthermore, I have a TableView at the bottom of my screen, to choose between the different annotations. However, they're listed by number, and not by pro...

AddProximityAlert Disappears Although Expiration -1

Hello, I want my app to have a proximityAlert until the user removes it. I use expiration -1 to create this proximityAlert. The proximityAlert works. But I find on my Droid phone, after adding a proximityAlert and leaving the phone over night for charging, the proximityAlert does not work the next day. How can I make sure that my pr...

Solr - Proximity Search using phrases

Hi all, I use Solr's proximity search quite often to search for words within a specifeid 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 possible? If so what is the syntax? Thanks in Advance Ruth ...

Proximity Monitoring on the iPhone without blacking out the screen?

Hello all! I'm able to detect proximity on the iPhone SDK, but the screen blacks out whenever the proximity state is triggered. is there a way I can prevent the proximity sensor from blacking out the screen, but still monitor a proximity sensor's state? Thanks! ...

What's wrong with this addProximity code?

I have this code: private void setupProximity() { Intent intent = new Intent(this, PlacesProximityHandlerService.class); intent.setAction("PlacesProximityHandlerService"); intent.putExtra("lat", objPlace.getLat()); intent.putExtra("lon", objPlace.getLon()); intent.putExtra("error_m", objPlace.getError()+ALERT_RANG...

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 alerts and requesting location updates. What are the pros and cons of the two methods? Will on...

When you get response from an addProximityAlert how do you know for which setup you got it?

I add to system a lot of POIs via addProximityAlert. When I have got the alert, I don't know for which setting has occurred. The only Extra that is passes is the 'entering' flag as it is described in the documentation. How can I know that? After the answers here is the working code: Intent intent = new Intent(this, PlacesProximityHan...

Is iPhone Proximity detection possible with Bluetooth?

Hi everyone, Would it be possible to fill a building with 20 - 30 bluetooth devices that act as proximity detectors and write an app that can calculate location in the building based on distance from the current detected sensors. I've looked at the GameKit API, but I don't see anything about calculating distance from devices. Can some...