How to make Google Maps update in real time my position?

Does anyone knows how to keep my marker in google maps updating its position in realtime?

You can use when Google Maps is available and map is ready;

&{ 'controls': { 'compass': true, 'myLocationButton': true, // GEOLOCATION BUTTON 'indoorPicker': true, 'zoom': true }, 'gestures': { 'scroll': true, 'tilt': true, 'rotate': true, 'zoom': true }, 'camera': { 'target': { 'lat':, 'lng': this.lng }, 'zoom': 14, } }); });