Server location interpolation for client

Does anyone have a pseudo code for server location interpolation and extrapolation on the client? I am replicating vehicle location, and will simulate the same movement on the client, but want to perform corrections based on the server location.