4 ms·
You don't need to send the full precision lat/lng in every update. Instead, send only the change in position from the last update (in meters), which you can cal
by iamleppert 10y ago
You don't need to send the full precision lat/lng in every update. Instead, send only the change in position from the last update (in meters), which you can calculate on the client.
You could also further reduce data by indexing the city into a grid, of, say 1 meter squares, or potentially a hilbert curve would be fun to experiment with.
- zongitsrinzler 10y agoSince they use UDP this would not be foolproof
- iamleppert 10y agoWell of course you need a way to deal with that, you could have a tolerance or tolerated error and then if that gets over a threshold you request the full precision location. Still loads more efficient than sending the full precision every time.