Simulating location 3D

Is there a way to simulate altitude, longitude and latitude using the API? For now I only found longitude and latitude to be simulated.

Simulating location 3D
 
 
Q