Google maps not refreshing location

I’m using Google maps with no hassles other than sometimes ‘my location’ is kms out.
It doesn’t refresh while in my app.
If I go over to G maps app, my location starts off inaccurate then quickly gets pretty accurate.
Then return to my app and all the distance calculations from my location are correct.

Somehow G maps is forcing a refresh and getting more accurate location.
Is there any way to force a refresh on ‘my location’ in the Google maps api?