title: Real Time Tracking in Android App
body: <p>How does app like Uber do real time tracking of Cabs? Let me put it across in detail:-</p>
  
  <ol>
  <li>Cabs Position to the server.</li>
  <li>Server then communicates that positionto the another user app which is trying to book a Cab.</li>
  </ol>
  
  <p>I have gone through many blogs, after that I could think of the solution below to solve the 2 issues:</p>
  
  <ol>
  <li>Cabs will communicate there lat/long to server after some time gap using http request.</li>
  <li>The user app will establish a socket with the server and any change in the server will be communicated to the user app through that socket.</li>
  </ol>
  
  <p>Is there a better way to do it? Please give your insight about the issue.</p>