PDA

View Full Version : iOS: area around user?



Ivaylo
27.01.2015, 16:48
Hello,

I would like to know how big ist the area around the user when he is running.
if ([detectedPOI poiID] == 7 && [detectedPOI distance] <= 70) {
....
}

Jumps the user in this is loop exactly 70m before?

10x,
Ivaylo

Ivaylo
27.01.2015, 16:54
IMG: 20150127-radius.jpg

dandronic
27.01.2015, 17:13
Hi Ivaylo,
Could you explain what are you trying to achieve? What is the behaviour you are after?

Ivaylo
27.01.2015, 17:27
70 meters before the POI id=7 I would like to trigger a function.
Everything is working fine. I just would like to know if the distance to the POI is really 70 meters.
Does the user has a area around him? Will the function be triggered exactly 70 meters before he reaches the point?

10x
Ivaylo

dandronic
27.01.2015, 17:52
Using the POI tracking (http://developer.skobbler.com/getting-started/android#sec018) function you can specify:
- the minimum aerial distance to the POI
- the minimum route distance to the POI
- the minimum number of turns on to the POI
- other factors (see http://developer.skobbler.com/docs/android/2.3.0/com/skobbler/ngx/poitracker/SKTrackablePOIRule.html)

For filtering out POIs all rules are applied, so you'll have to set high values for the ones that should not affect the outcome. I.e. I'm only interested in the route distance -> I set the route distance to 70m and for other parameters I set high values (aerial distance = 4000m , number of turns = 3, etc.). In your case set the aerial distance and/or the route distance to 70 and leave the other parameter to their default values - it should be fine.

Ivaylo
31.01.2015, 21:47
ok, thank you very much