offline location tracking in android : I want to draw employee's live location and travelled path ,

I am running a service in background continuously to get location details and storing to server , at admin side i ma drawing the path by those records stored in db.[i am getting the path like  a square in offline while am able to clearly in online ][1]

how can i store the correct lat long values in server in offline,

i want to draw the path clearly in offline also ,how can i achieve that ,please suggest me a way , thank you


  [1]: https://i.stack.imgur.com/ewtUQ.png