vfafou Well-Known Member Licensed User Longtime User Jul 21, 2017 #1 Hello! My app uses GPS and every LocationChanged I need to check within which polygon belongs the current location. Which is the best approach: 1. Using Spatialite Library? 2. Calculate by code with lists of coordinates? What to do in order to not have overflows: 1. Background thread calculation? 2. Every X seconds? I'm very confused! Thank you in advance!
Hello! My app uses GPS and every LocationChanged I need to check within which polygon belongs the current location. Which is the best approach: 1. Using Spatialite Library? 2. Calculate by code with lists of coordinates? What to do in order to not have overflows: 1. Background thread calculation? 2. Every X seconds? I'm very confused! Thank you in advance!
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2017 #2 1. Measure the time it takes to calculate whether the point is in a polygon. 2. Multiply it by the number of polygons. My guess is that it will be very very fast and you won't need to do anything special. Upvote 0
1. Measure the time it takes to calculate whether the point is in a polygon. 2. Multiply it by the number of polygons. My guess is that it will be very very fast and you won't need to do anything special.