KatieZemon / FIUTR

Android Wardriving Application for CS397
1 stars 0 forks source link

server: handle duplicate networks #8

Closed mcatanzaro closed 10 years ago

mcatanzaro commented 10 years ago

I don't think the server likes receiving duplicate networks right now. Not only do we need to drop identical networks, we also need to consider networks equivalent if they are very close to each other.

mcatanzaro commented 10 years ago

Done.

Note that 40-meter detection really sucks right now: the latitudes and longitudes are stored as floats, which is not really significant enough to get down to meters. But it's implemented and it works when not going through the database.

If the current accuracy is not sufficient, let me know and I'll change the database to store strings instead of floats.

mcatanzaro commented 10 years ago

Actually:

1) I'm stupid 2) SQLite stores only doubles = 8 bytes = good. I was using floats = 4 bytes = not good. 3) It's all strings now, so it doesn't matter.