Monitor IOS users in real time

Asked

Viewed 99 times

0

Someone would know how to answer me the best way to get the location of a user in real time through GPS on IOS, I’m wondering if it would be correct if I get the location of the user every 10 seconds and make a request with the Web Service updating its location, people will move I have to update users on the map, someone would know to answer?

1 answer

2

When you say "real time," you need to define precisely what that is. Assuming your application tracks multiple users on some map, if the information is delayed a few seconds (or a few minutes), is that a problem? And what is the profile of users' movement - are they usually moving fast, or slower? The answer to these questions will tell you what approach you should take.

Note that an approach that collects GPS information every second (or less) and sends the information to the server will give you the best degree of "real time" (assuming you have some server logic to normalize GPS signal variations)but will probably consume so much user battery that the trend is that he/she uninstall the application.

Starting with the second question (user drive profile). If most users are moving "slowly" (which is also a relative term - small changes of position are increased if the zoom level of the map you are using is high), you can wait more than 10 seconds to collect the GPS position. If you know that the movement is fast, or that it is possible that the user may not be moving in a straight line, making several curves (for example, a running application, like the Runkeeper), where , then the interval should be reduced (also taking into account that the GPS signal has an error that must be incorporated).

Regarding the first question (how "real time" is the information), if your application does not need the accuracy in seconds, you may take longer to update the user’s position on the web service. Note that this is orthogonal to GPS data capture - you may even be capturing the position every second (if necessary), but only transmit to the server every minute, for example.

Anyway, like several questions, the answer is "depends". You should collect GPS data as often as necessary, but no more than that. The same with updating data in the service - as frequent as accurate, but nothing more.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.