2016년 12월 31일 토요일

Possible to add two different tinyDB to sms text?


Hi, is it possible to add two different tinyDB to sms text? 
I know that this doesn't work, but it will show you the idea

 Capture.PNG
--
There is only one TinyDB, but it can have many tags. I see a problem with your code because it is very unlikely that a specific Lat,Lon combination would be there, therefore you would always get blank values, unless you do not move.
So could you please explain a bit more what you want to do?


--
The proper test for proximity would be:
If abs(target lon - current lon) + abs(target lat - current lat) < epsilon then
  you are close
else
  you are far.

Epsilon is whatever number you choose (> 0) for how close you need to be, bigger is looser.

-- 

댓글 없음:

댓글 쓰기