sockets - Real Time Tracking in Android App -


how app uber real time tracking of cabs? let me put across in detail:-

  1. cabs position server.
  2. server communicates positionto user app trying book cab.

i have gone through many blogs, after think of solution below solve 2 issues:

  1. cabs communicate there lat/long server after time gap using http request.
  2. the user app establish socket server , change in server communicated user app through socket.

is there better way it? please give insight issue.

i think each cab fitted gps tracker(could mobile based app not sure) track , send real time data, once location data changes tcp connection established used communicate.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -