Thread: Tracking Design
07-14-2014, 06:45 PM #1
- Member Since
- Oct 18, 2011
I am in the middle of building a very small tracking app so that friends can share their live tracking location with each other.
I'd like your opinion / feedback on my design of this feature.
01 - when the sender sends their live tracking to their friend (reciever) on the app, their $sent_location is stored in the DB.
02 - if the sender moves 50m their $live_location is then updated to the DB but ONLY if it 7 seconds has elapsed since the last update of $live_location (so there must be a 7 second gap in between DB updates AND the update query will ONLY be triggered if the user has moved 50m)
03 - the receivers map refreshes / checks every 5 seconds to see their $live_location
So if the sender is sitting at home and they don't move 50m, the receiver will see the sender's $live_location as at home... then the $live_location will only be updated if the sender moves 50m (this will cut down on the amount of queries to the DB)
I'd love to hear your opinion on the design of this function and if you have better ways to implement it, thanks in advance for your help.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Roger442 in forum OS X - Operating SystemReplies: 10Last Post: 05-10-2014, 06:48 PM
By ceili in forum iOS and AppsReplies: 6Last Post: 05-25-2011, 01:27 PM
By toMACsh in forum Community Suggestions and FeedbackReplies: 6Last Post: 05-03-2010, 06:03 PM
By sonoto999 in forum Schweb's LoungeReplies: 9Last Post: 01-30-2007, 04:37 PM
By menace3054 in forum Web Design and HostingReplies: 5Last Post: 04-25-2005, 10:31 PM