The script is base on Lua language.
Gps
Gps:instance()
Create an Gps object to control fake GPS.
Gps:setLocation({latitude, longitude})
Set GPS coordinate with latitude & longtiude.
Gps:setAltitude({altitude})
Set GPS with altitude in meters.
Gps:start()
Start to fake GPS.
Gps:stop()
Stop faking GPS.
Example
local gps = Gps:instance();
gps:stop();
gps:setLocation({25.1244, 114.5566});
gps:start();
Path
Path:instance()
Create an Path Sweep object to control fake path-sweep.
Path:addLocation({latitude, longitude})
Add a fake path-sweep coordinate to the map.
Path:reset()
Clear all the path-sweep coordinates on the map.
Path:start()
Start to path-sweep.
Path:stop()
Stop path-sweep.
Example
local path = Path:instance();
path:stop();
path:reset();
path:addLocation({25,113});
path:addLocation({26,114});
path:start();