{"errors":[{"code":"invalid_param","description":"A parameter is missing, of the wrong type or out of range; `param` names it."},{"code":"unknown_method","description":"No such method."},{"code":"vehicle_not_found","description":"No such vehicle (or none, when the vehicle was left out)."},{"code":"not_ready","description":"The world is not loaded yet: call world.goto first, or try again in a few seconds."},{"code":"out_of_range","description":"Too far from the loaded terrain (routes and spawns must be near the camera)."},{"code":"no_route","description":"No drivable route within the slope limit on dry, clear ground."},{"code":"forbidden","description":"This deployment does not allow that place."},{"code":"world_timeout","description":"The world did not finish in time (e.g. still travelling); poll world.status."},{"code":"unavailable","description":"The world could not do it right now (e.g. capture failed)."},{"code":"plan_required","description":"Scenes, custom assets and scene scripts are included with every paid plan (Team, Platform, Enterprise)."},{"code":"scene_not_found","description":"No such scene in your account."},{"code":"entity_not_found","description":"No such entity in this world."},{"code":"asset_not_found","description":"No such asset in your account (or not of the right type)."},{"code":"invalid_scene","description":"The scene or the entity's components do not match the Metaplanets Scene format (api/scene-v1.json)."},{"code":"not_available","description":"Not offered by this kind of session (images in a headless world; world.step in a rendered one)."}],"events":[{"data":{"$ref":"#/components/schemas/Surface"},"description":"world.goto finished: the ground at the destination is loaded.","name":"world.arrived"},{"data":{"$ref":"#/components/schemas/Telemetry"},"description":"A vehicle was placed.","name":"vehicle.spawned"},{"data":{"properties":{"vehicle":{"description":"Vehicle id","type":"string"},"waypoints":{"items":{"$ref":"#/components/schemas/LatLon"},"type":"array"}},"required":["vehicle","waypoints"],"type":"object"},"description":"A route started.","name":"vehicle.route"},{"data":{"properties":{"next":{"description":"Index of the next waypoint","type":"number"},"reached":{"description":"Index reached","type":"number"},"vehicle":{"description":"Vehicle id","type":"string"}},"required":["vehicle","reached","next"],"type":"object"},"description":"A waypoint was reached.","name":"vehicle.waypoint"},{"data":{"$ref":"#/components/schemas/Telemetry"},"description":"The route reached its destination.","name":"vehicle.arrived"},{"data":{"description":"Telemetry plus the hazard","properties":{"asset":{"description":"Vehicle asset id (custom vehicles)","nullable":true,"type":"string"},"elevation_m":{"description":"Height above sea level","type":"number"},"entity":{"description":"Scene entity id, when the vehicle belongs to the loaded scene","nullable":true,"type":"string"},"ground":{"nullable":true,"properties":{"landcover":{"description":"Land-cover class","type":"string"},"slope_deg":{"description":"Ground slope","type":"number"},"water_depth_m":{"description":"Water above the ground","type":"number"}},"required":["slope_deg","landcover","water_depth_m"],"type":"object"},"grounded":{"description":"Wheels on the ground","type":"boolean"},"hazard":{"description":"What stopped it","enum":["grade","cross-slope","water","obstacle"],"type":"string"},"heading_deg":{"description":"Compass heading, 0 = north","type":"number"},"health":{"description":"Condition, 1 = undamaged, 0 = wrecked","maximum":1,"minimum":0,"type":"number"},"kind":{"description":"Vehicle kind (custom: a vehicle asset)","enum":["car","pickup","truck","firetruck","custom"],"type":"string"},"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"nullable":true,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"nullable":true,"type":"number"},"odometer_m":{"description":"Distance driven since spawn","type":"number"},"pitch_deg":{"description":"Nose up positive","type":"number"},"roll_deg":{"description":"Right side down positive","type":"number"},"route":{"$ref":"#/components/schemas/RouteState","nullable":true},"slope_deg":{"description":"Slope ahead","type":"number"},"speed_kmh":{"description":"Speed","type":"number"},"speed_mps":{"description":"Speed","type":"number"},"vehicle":{"description":"Vehicle id","type":"string"},"water_depth_m":{"description":"Water ahead","type":"number"},"weather":{"$ref":"#/components/schemas/Weather"}},"type":"object"},"description":"The vehicle stopped before a hazard.","name":"vehicle.blocked"},{"data":{"$ref":"#/components/schemas/Telemetry"},"description":"The vehicle could not get round an obstacle after three attempts.","name":"vehicle.stuck"},{"data":{"properties":{"attempt":{"description":"Attempt number","type":"number"},"reason":{"description":"Why","type":"string"},"vehicle":{"description":"Vehicle id","type":"string"}},"required":["vehicle","attempt","reason"],"type":"object"},"description":"Blocked by an obstacle: backing off to try again.","name":"vehicle.recovering"},{"data":{"properties":{"length_m":{"description":"New route length","type":"number"},"vehicle":{"description":"Vehicle id","type":"string"},"waypoints":{"items":{"$ref":"#/components/schemas/LatLon"},"type":"array"}},"required":["vehicle","waypoints","length_m"],"type":"object"},"description":"A new route round an obstacle.","name":"vehicle.replanned"},{"data":{"properties":{"health":{"description":"Condition, 0–1","type":"number"},"vehicle":{"description":"Vehicle id","type":"string"}},"required":["vehicle","health"],"type":"object"},"description":"The vehicle took damage.","name":"vehicle.damaged"},{"data":{"properties":{"vehicle":{"description":"Vehicle id","type":"string"}},"required":["vehicle"],"type":"object"},"description":"A vehicle left the world.","name":"vehicle.removed"},{"data":{"$ref":"#/components/schemas/Telemetry"},"description":"Telemetry once a second while a vehicle moves.","name":"vehicle.telemetry"},{"data":{"$ref":"#/components/schemas/SceneInfo"},"description":"A scene was loaded.","name":"scene.loaded"},{"data":{"properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Why","type":"string"},"scene":{"description":"Scene id","type":"string"}},"required":["scene","code","message"],"type":"object"},"description":"The scene a session was created with could not be loaded.","name":"scene.failed"},{"data":{"properties":{"scene":{"description":"Scene id","type":"string"}},"required":["scene"],"type":"object"},"description":"The scene was unloaded.","name":"scene.unloaded"},{"data":{"$ref":"#/components/schemas/Entity"},"description":"An entity was placed (entity.spawn or a script).","name":"entity.spawned"},{"data":{"properties":{"entity":{"description":"Entity id","type":"string"}},"required":["entity"],"type":"object"},"description":"An entity left the world.","name":"entity.removed"},{"data":{"properties":{"entity":{"description":"The vehicle's entity id","nullable":true,"type":"string"},"trigger":{"description":"Trigger entity id","type":"string"},"vehicle":{"description":"Vehicle id","type":"string"}},"required":["trigger","vehicle","entity"],"type":"object"},"description":"A vehicle entered a trigger volume.","name":"trigger.enter"},{"data":{"properties":{"entity":{"description":"The vehicle's entity id","nullable":true,"type":"string"},"trigger":{"description":"Trigger entity id","type":"string"},"vehicle":{"description":"Vehicle id","type":"string"}},"required":["trigger","vehicle","entity"],"type":"object"},"description":"A vehicle left a trigger volume.","name":"trigger.exit"},{"data":{"properties":{"message":{"description":"Text","type":"string"},"script":{"description":"Script id","type":"string"}},"required":["script","message"],"type":"object"},"description":"A scene script logged a line.","name":"script.log"},{"data":{"properties":{"message":{"description":"Why","type":"string"},"script":{"description":"Script id","type":"string"}},"required":["script","message"],"type":"object"},"description":"A scene script failed or went over its budget and was stopped.","name":"script.error"},{"data":{"properties":{"data":{"type":"object"},"script":{"description":"Script id","type":"string"}},"required":["script","data"],"type":"object"},"description":"A scene script sent a message to the caller (world.emit in the script).","name":"script.message"},{"data":{"properties":{"action":{"description":"Action id","type":"string"},"state":{"description":"Pressed or released","enum":["down","up"],"type":"string"}},"required":["action","state"],"type":"object"},"description":"The player used a declared input action (the scene's input section).","name":"input"},{"data":{"properties":{"panel":{"description":"Panel id","type":"string"},"widget":{"description":"Button id","type":"string"}},"required":["panel","widget"],"type":"object"},"description":"The player clicked a UI button.","name":"ui.click"},{"data":{"$ref":"#/components/schemas/GameState"},"description":"The game state changed (score, lives, checkpoint, status).","name":"rules.changed"},{"data":{"properties":{"index":{"description":"Checkpoint index","type":"number"},"trigger":{"description":"Trigger entity","type":"string"},"vehicle":{"description":"Vehicle id","type":"string"}},"required":["index","trigger","vehicle"],"type":"object"},"description":"A vehicle passed the next checkpoint.","name":"checkpoint.reached"},{"data":{"$ref":"#/components/schemas/GameState"},"description":"The game was won.","name":"game.won"},{"data":{"$ref":"#/components/schemas/GameState"},"description":"The game was lost.","name":"game.lost"},{"data":{"type":"object"},"description":"A world attached to the session.","name":"session.attached"},{"data":{"type":"object"},"description":"The session's world disconnected (it may reconnect).","name":"session.detached"},{"data":{"properties":{"reason":{"description":"Why","type":"string"}},"type":"object"},"description":"The session ended (limits, or a server restart).","name":"session.closed"}],"methods":[{"description":"Where the simulation is and whether it is ready: mode, camera, time of day, weather and the vehicles under API control.","name":"world.status","params":{},"required":[],"result":{"properties":{"camera":{"$ref":"#/components/schemas/Camera","nullable":true},"mode":{"description":"surface, space or travelling","type":"string"},"paused":{"type":"boolean"},"ready":{"type":"boolean"},"time_of_day_h":{"description":"Local hour, 0–24","type":"number"},"vehicles":{"items":{"$ref":"#/components/schemas/Telemetry"},"type":"array"},"weather":{"description":"Weather preset; auto = the simulation runs freely; custom = a caller's own state (world.get_weather)","enum":["auto","clear","fair","cloudy","overcast","rain","storm","snow","thunderstorm","hurricane","high_cloud","fog","drizzle","blizzard","custom"],"type":"string"}},"required":["ready","paused","mode","camera","time_of_day_h","weather","vehicles"],"type":"object"},"summary":"World status"},{"description":"Travel to a place on Earth (flies there, or drops in from orbit the first time). Vehicles spawned before are removed. Answers once the ground there is loaded: 10–60 s, up to about 2 minutes on a cold start.","long":true,"name":"world.goto","params":{"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"},"name":{"description":"Label shown on arrival","maxLength":80,"type":"string"},"timeout_s":{"default":240,"description":"Give up waiting after this long","maximum":590,"minimum":10,"type":"number"}},"required":["lat","lon"],"result":{"$ref":"#/components/schemas/Surface"},"summary":"Travel somewhere"},{"description":"Set the local time of day, and optionally the season (now follows the calendar; seasons are for the viewer's hemisphere).","name":"world.set_time","params":{"hour":{"description":"Hour","maximum":24,"minimum":0,"type":"number"},"season":{"description":"Season","enum":["now","winter","spring","summer","autumn"],"type":"string"}},"required":["hour"],"result":{"properties":{"season":{"description":"Season","enum":["now","winter","spring","summer","autumn"],"type":"string"},"time_of_day_h":{"description":"Local hour","type":"number"}},"required":["time_of_day_h"],"type":"object"},"summary":"Set the time of day"},{"description":"Set the weather. The weather is simulated (a global model of winds, pressure systems, fronts, cloud, rain, snow and storms), not real-world observations or forecasts. auto lets the simulation run; storm and hurricane place a system beside you; the other presets fix the conditions. For fine control give any of clouds, precipitation, wind, visibility_m, fog, temperature_c, pressure_hpa and storms: they refine the preset named in weather (or, with custom, the weather in force) and the result is custom weather. clouds and wind replace the whole list; precipitation, fog and storms change only the fields given. Weather lasts for the session (it is not saved); a new session starts with a clear sky (clear).","name":"world.set_weather","params":{"clouds":{"description":"Cloud layers, at most one per tier (low, mid, high); [] for a clear sky","items":{"$ref":"#/components/schemas/CloudLayer"},"maxItems":3,"type":"array"},"fog":{"$ref":"#/components/schemas/Fog"},"precipitation":{"$ref":"#/components/schemas/Precipitation"},"pressure_hpa":{"description":"Sea-level pressure","maximum":1080,"minimum":900,"type":"number"},"storms":{"$ref":"#/components/schemas/Storms"},"temperature_c":{"description":"Air temperature at the ground","maximum":55,"minimum":-60,"type":"number"},"visibility_m":{"description":"Visibility outside fog","maximum":100000,"minimum":100,"type":"number"},"weather":{"description":"Weather preset (custom: refine the weather in force)","enum":["auto","clear","fair","cloudy","overcast","rain","storm","snow","thunderstorm","hurricane","high_cloud","fog","drizzle","blizzard","custom"],"type":"string"},"wind":{"description":"Wind by height, any order (the lowest becomes the surface wind)","items":{"$ref":"#/components/schemas/WindLevel"},"maxItems":8,"minItems":1,"type":"array"}},"required":["weather"],"result":{"properties":{"state":{"$ref":"#/components/schemas/WeatherState","nullable":true},"summary":{"description":"One-line description","type":"string"},"weather":{"description":"Weather in force","enum":["auto","clear","fair","cloudy","overcast","rain","storm","snow","thunderstorm","hurricane","high_cloud","fog","drizzle","blizzard","custom"],"type":"string"}},"required":["weather"],"type":"object"},"summary":"Set the weather"},{"description":"The weather in force as a complete state (the same fields world.set_weather takes) and what it is like at the camera. In simulated weather (auto, storm, hurricane) the state describes the live sky and changes as the weather moves; pass it to world.set_weather with weather custom to hold it.","name":"world.get_weather","params":{},"required":[],"result":{"properties":{"designed":{"description":"true: a fixed state (a designed preset or custom); false: the simulation is running","type":"boolean"},"observed":{"$ref":"#/components/schemas/Weather","nullable":true},"season":{"description":"Season","enum":["now","winter","spring","summer","autumn"],"type":"string"},"state":{"$ref":"#/components/schemas/WeatherState"},"summary":{"description":"One-line description","type":"string"},"time_of_day_h":{"description":"Local hour","type":"number"},"weather":{"description":"Weather preset in force","enum":["auto","clear","fair","cloudy","overcast","rain","storm","snow","thunderstorm","hurricane","high_cloud","fog","drizzle","blizzard","custom"],"type":"string"}},"required":["weather","designed","state","summary","observed","time_of_day_h","season"],"type":"object"},"summary":"Get the weather"},{"description":"Every weather preset with its description and, for designed presets, the full state it applies (a starting point for fine control with world.set_weather).","name":"world.weather_presets","params":{},"required":[],"result":{"properties":{"presets":{"items":{"properties":{"label":{"description":"Display name","type":"string"},"name":{"description":"Preset","enum":["auto","clear","fair","cloudy","overcast","rain","storm","snow","thunderstorm","hurricane","high_cloud","fog","drizzle","blizzard","custom"],"type":"string"},"simulated":{"description":"Runs the simulation (no fixed state)","type":"boolean"},"state":{"$ref":"#/components/schemas/WeatherState","nullable":true},"summary":{"description":"What it looks like","type":"string"}},"required":["name","label","simulated","summary","state"],"type":"object"},"type":"array"}},"required":["presets"],"type":"object"},"summary":"List weather presets"},{"description":"Ground at a point: elevation, slope, land cover and water depth. Full detail near the camera (source \"streamed\"); elsewhere elevation only (source \"dem\").","name":"terrain.sample","params":{"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"}},"required":["lat","lon"],"result":{"$ref":"#/components/schemas/Surface"},"summary":"Sample the ground"},{"description":"Elevation profile along a straight line, with total climb, descent, steepest slope and wet samples. Judge a route with it before driving.","name":"terrain.profile","params":{"from_lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"from_lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"},"samples":{"default":40,"description":"Points along the line","maximum":200,"minimum":2,"type":"integer"},"to_lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"to_lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"}},"required":["from_lat","from_lon","to_lat","to_lon"],"result":{"properties":{"climb_m":{"description":"Total climb","type":"number"},"descent_m":{"description":"Total descent","type":"number"},"length_m":{"description":"Line length","type":"number"},"samples":{"items":{"$ref":"#/components/schemas/Surface"},"type":"array"},"steepest_slope_deg":{"description":"Steepest grade","type":"number"},"water_samples":{"description":"Samples under water","type":"number"}},"required":["length_m","climb_m","descent_m","steepest_slope_deg","water_samples","samples"],"type":"object"},"summary":"Elevation profile"},{"description":"Find a drivable route between two points on the loaded terrain, avoiding ground steeper than max_slope_deg, water, trees and boulders, and preferring open ground to forest. Fails with no_route when there is none.","name":"route.plan","params":{"from_lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"from_lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"},"max_slope_deg":{"default":20,"description":"Steepest grade allowed","maximum":45,"minimum":1,"type":"number"},"to_lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"to_lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"}},"required":["from_lat","from_lon","to_lat","to_lon"],"result":{"$ref":"#/components/schemas/Plan"},"summary":"Plan a route"},{"description":"Place a ground vehicle (default: ahead of the camera): a built-in kind, or a custom vehicle asset of your account. Returns its telemetry and id.","name":"vehicle.spawn","params":{"asset":{"description":"A vehicle asset of your account (POST /v1/assets, type vehicle): a custom rigged vehicle. Paid plans.","maxLength":80,"type":"string"},"heading_deg":{"description":"Compass heading, 0 = north","maximum":360,"minimum":0,"type":"number"},"kind":{"description":"Vehicle kind (or give asset)","enum":["car","pickup","truck","firetruck"],"type":"string"},"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"}},"required":[],"result":{"$ref":"#/components/schemas/Telemetry"},"summary":"Place a vehicle"},{"description":"Drive along waypoints. The vehicle stops itself before ground steeper than max_slope_deg and (by default) water; when blocked by an obstacle it backs off and re-plans. Progress arrives as vehicle.* events. With wait, answers when the route ends, with its outcome.","long":true,"name":"vehicle.drive","params":{"avoid_water":{"default":true,"description":"Stop before water deeper than 0.4 m","type":"boolean"},"max_slope_deg":{"default":25,"description":"Stop before ground steeper than this","maximum":45,"minimum":1,"type":"number"},"plan":{"default":false,"description":"Find a drivable route to the last waypoint first (as route.plan) instead of driving straight, and plan again from the bank if it meets water","type":"boolean"},"speed_kmh":{"default":30,"description":"Cruise speed, capped by the vehicle","maximum":120,"minimum":1,"type":"number"},"timeout_s":{"default":300,"description":"With wait: stop waiting after this long (the vehicle keeps driving)","maximum":590,"minimum":1,"type":"number"},"vehicle":{"description":"Vehicle id from vehicle.spawn (optional when exactly one vehicle exists)","maxLength":32,"type":"string"},"wait":{"default":false,"description":"Answer only when the route ends","type":"boolean"},"waypoints":{"description":"Points in order; the last is the destination","items":{"$ref":"#/components/schemas/LatLon"},"maxItems":500,"minItems":1,"type":"array"}},"required":["waypoints"],"result":{"description":"Telemetry, plus the plan used and (with wait) how the route ended.","properties":{"outcome":{"description":"With wait: how the route ended","enum":["arrived","blocked","stuck","stopped","replaced","removed","timeout"],"nullable":true,"type":"string"},"plan":{"$ref":"#/components/schemas/Plan","nullable":true},"telemetry":{"$ref":"#/components/schemas/Telemetry"}},"required":["telemetry","plan","outcome"],"type":"object"},"summary":"Drive a route"},{"description":"Direct control for agents and learning loops: hold throttle, steering and brake for duration_s, then answer with telemetry (one environment step). The controls stay on until the next command, for at most 2 s more, then the vehicle brakes. Cancels any route. Positive steer turns right; negative throttle reverses.","name":"vehicle.control","params":{"brake":{"default":false,"description":"Brake","type":"boolean"},"duration_s":{"default":0.5,"description":"How long to hold these controls","maximum":10,"minimum":0.05,"type":"number"},"steer":{"default":0,"description":"Steering, -1 (full left) to 1 (full right)","maximum":1,"minimum":-1,"type":"number"},"throttle":{"description":"Throttle, -1 (full reverse) to 1 (full forward)","maximum":1,"minimum":-1,"type":"number"},"vehicle":{"description":"Vehicle id from vehicle.spawn (optional when exactly one vehicle exists)","maxLength":32,"type":"string"},"wait":{"default":true,"description":"Answer after duration_s with the telemetry then (one step); false answers at once","type":"boolean"}},"required":["throttle"],"result":{"$ref":"#/components/schemas/Telemetry"},"summary":"Drive directly"},{"description":"Brake to a halt; the route is cancelled.","name":"vehicle.stop","params":{"vehicle":{"description":"Vehicle id from vehicle.spawn (optional when exactly one vehicle exists)","maxLength":32,"type":"string"}},"required":[],"result":{"$ref":"#/components/schemas/Telemetry"},"summary":"Stop a vehicle"},{"description":"Live state: position, elevation, heading, speed, attitude, the ground under it, weather, health, odometer and route progress.","name":"vehicle.telemetry","params":{"vehicle":{"description":"Vehicle id from vehicle.spawn (optional when exactly one vehicle exists)","maxLength":32,"type":"string"}},"required":[],"result":{"$ref":"#/components/schemas/Telemetry"},"summary":"Vehicle telemetry"},{"description":"Every vehicle under API control, with telemetry.","name":"vehicle.list","params":{},"required":[],"result":{"properties":{"vehicles":{"items":{"$ref":"#/components/schemas/Telemetry"},"type":"array"}},"required":["vehicles"],"type":"object"},"summary":"List vehicles"},{"description":"Remove a vehicle from the world.","name":"vehicle.remove","params":{"vehicle":{"description":"Vehicle id from vehicle.spawn (optional when exactly one vehicle exists)","maxLength":32,"type":"string"}},"required":[],"result":{"properties":{"vehicle":{"description":"Removed vehicle id","type":"string"}},"required":["vehicle"],"type":"object"},"summary":"Remove a vehicle"},{"description":"Point the main view at a vehicle: chase camera, or the driver's seat.","name":"camera.follow","params":{"vehicle":{"description":"Vehicle id from vehicle.spawn (optional when exactly one vehicle exists)","maxLength":32,"type":"string"},"view":{"default":"chase","description":"Camera view","enum":["chase","driver"],"type":"string"}},"required":[],"result":{"properties":{"vehicle":{"description":"Followed vehicle id","nullable":true,"type":"string"},"view":{"description":"Camera view","enum":["chase","driver"],"type":"string"}},"required":["vehicle","view"],"type":"object"},"summary":"Follow a vehicle"},{"description":"Stop following a vehicle; the camera stays where it is.","name":"camera.release","params":{},"required":[],"result":{"properties":{"vehicle":{"description":"Followed vehicle id","nullable":true,"type":"string"}},"required":["vehicle"],"type":"object"},"summary":"Release the camera"},{"description":"Advance a headless world by `seconds` at once, as fast as the CPU allows (no wall-clock wait), then answer. After the first step the world waits for the next one instead of running in real time, and calls that wait advance it by what they wait for: vehicle.control by duration_s, vehicle.drive until the route ends (world.goto still loads in real time). Headless sessions only.","name":"world.step","params":{"seconds":{"default":1,"description":"Simulated seconds to advance (60 steps a second)","maximum":600,"minimum":0.0167,"type":"number"}},"required":[],"result":{"properties":{"ticks":{"description":"Fixed steps run","type":"number"},"time_s":{"description":"Simulation clock after the step (s)","type":"number"}},"required":["ticks","time_s"],"type":"object"},"summary":"Step the simulation"},{"description":"A square grid centred on a vehicle: ground height relative to the ground under it, water depth and whether a tree, rock or building blocks the cell. Row-major from the far edge ahead to the edge behind, left to right, in the frame of the vehicle heading (or north-up). No GPU: works in headless sessions.","name":"sensor.heightmap","params":{"frame":{"default":"heading","description":"Grid orientation","enum":["heading","north"],"type":"string"},"resolution_m":{"default":2,"description":"Cell size (m); at most 256 cells a side","maximum":20,"minimum":0.5,"type":"number"},"size_m":{"default":64,"description":"Side of the square (m)","maximum":400,"minimum":4,"type":"number"},"vehicle":{"description":"Vehicle id from vehicle.spawn (optional when exactly one vehicle exists)","maxLength":32,"type":"string"}},"required":[],"result":{"properties":{"blocked":{"description":"1 where a trunk, rock or building occupies the cell","items":{"description":"0 or 1","type":"number"},"type":"array"},"cells":{"description":"Cells per side","type":"number"},"elevation_m":{"description":"Ground under the vehicle (m above sea level)","type":"number"},"frame":{"description":"Grid orientation","type":"string"},"heights_m":{"description":"Relative ground height per cell (null where not loaded)","items":{"description":"m","nullable":true,"type":"number"},"type":"array"},"resolution_m":{"description":"Cell size (m)","type":"number"},"water_depth_m":{"description":"Water depth per cell (0 when dry)","items":{"description":"m","type":"number"},"type":"array"}},"required":["cells","resolution_m","frame","elevation_m","heights_m","water_depth_m","blocked"],"type":"object"},"summary":"Ground around a vehicle"},{"description":"Lidar-like ranges in a horizontal fan at a height above the ground under a vehicle: distance to the first trunk, rock, building, rising ground or water deeper than 0.4 m. Ray 0 points ahead, then clockwise. No GPU: works in headless sessions.","name":"sensor.rays","params":{"count":{"default":36,"description":"Rays, evenly spaced over fov_deg","maximum":360,"minimum":1,"type":"number"},"fov_deg":{"default":360,"description":"Fan width (360 = all round)","maximum":360,"minimum":1,"type":"number"},"height_m":{"default":1,"description":"Ray height above the ground under the vehicle (m)","maximum":20,"minimum":0,"type":"number"},"range_m":{"default":50,"description":"Maximum range (m)","maximum":200,"minimum":1,"type":"number"},"vehicle":{"description":"Vehicle id from vehicle.spawn (optional when exactly one vehicle exists)","maxLength":32,"type":"string"}},"required":[],"result":{"properties":{"angles_deg":{"description":"Bearing of each ray relative to the heading (clockwise)","items":{"description":"deg","type":"number"},"type":"array"},"hits":{"description":"What each ray hit","items":{"description":"Hit","enum":["none","ground","obstacle","water"],"type":"string"},"type":"array"},"ranges_m":{"description":"Distance per ray (range_m where nothing was hit)","items":{"description":"m","type":"number"},"type":"array"}},"required":["ranges_m","hits","angles_deg"],"type":"object"},"summary":"Range rays around a vehicle"},{"description":"A picture of the current view (JPEG, base64), for vision models and reports.","name":"camera.snapshot","params":{"quality":{"default":0.8,"description":"JPEG quality","maximum":0.95,"minimum":0.3,"type":"number"}},"required":[],"result":{"properties":{"bytes":{"description":"Image size","type":"number"},"camera":{"$ref":"#/components/schemas/Camera","nullable":true},"data":{"description":"Base64 image","format":"byte","type":"string"},"mime_type":{"description":"Image type","enum":["image/jpeg"],"type":"string"}},"required":["mime_type","bytes","data","camera"],"type":"object"},"summary":"Take a snapshot"},{"description":"Load one of your account's scenes (POST /v1/scenes, or saved from Dragon Editor) into this world: travels to it, places its entities, makes its vehicles drivable (their ids are in vehicles) and starts its scripts. Replaces any scene loaded before. Paid plans.","long":true,"name":"scene.load","params":{"draft":{"description":"Or: a draft id (POST /v1/scenes/{id}/drafts): its current, unsaved document, for playtests","maxLength":80,"type":"string"},"scene":{"description":"Scene id","maxLength":80,"type":"string"},"scripts":{"default":true,"description":"Start the scene's scripts","type":"boolean"},"timeout_s":{"default":240,"description":"Give up waiting after this long","maximum":590,"minimum":10,"type":"number"},"travel":{"default":true,"description":"Travel to the scene's spawn point (or origin) first","type":"boolean"}},"required":[],"result":{"$ref":"#/components/schemas/SceneInfo"},"summary":"Load a scene"},{"description":"Remove the loaded scene: its entities, vehicles and scripts.","name":"scene.unload","params":{},"required":[],"result":{"properties":{"scene":{"description":"Scene id that was unloaded","nullable":true,"type":"string"}},"required":["scene"],"type":"object"},"summary":"Unload the scene"},{"description":"The loaded scene, or null when none is loaded.","name":"scene.info","params":{},"required":[],"result":{"$ref":"#/components/schemas/SceneInfo","nullable":true},"summary":"Scene status"},{"description":"Every entity of the loaded scene and every one placed with entity.spawn.","name":"entity.list","params":{"class":{"description":"Only this semantic class","maxLength":40,"type":"string"}},"required":[],"result":{"properties":{"entities":{"items":{"$ref":"#/components/schemas/Entity"},"type":"array"}},"required":["entities"],"type":"object"},"summary":"List entities"},{"description":"One entity's state.","name":"entity.get","params":{"entity":{"description":"Entity id","maxLength":80,"type":"string"}},"required":["entity"],"result":{"$ref":"#/components/schemas/Entity"},"summary":"Get an entity"},{"description":"Place an object: a primitive, a model or vehicle asset of your account, a light or a trigger, with components as in a Metaplanets Scene entity (api/scene-v1.json). Default: on the ground ahead of the camera. Paid plans.","name":"entity.spawn","params":{"components":{"description":"Components, as in a scene entity: primitive, mesh, vehicle, physics, semantics, light, trigger, script","type":"object"},"elevation_m":{"description":"Height above sea level (default: on the ground)","maximum":9000,"minimum":-500,"type":"number"},"entity":{"description":"Entity id (default: generated)","maxLength":80,"type":"string"},"heading_deg":{"description":"Compass heading, 0 = north","maximum":360,"minimum":0,"type":"number"},"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"},"name":{"description":"Name","maxLength":160,"type":"string"},"position_m":{"description":"Or: position in the scene frame (ENU at the scene origin; m)","items":{"description":"m","maximum":1000000,"minimum":-1000000,"type":"number"},"maxItems":3,"minItems":3,"type":"array"},"rotation_deg":{"description":"Or: full rotation about east, north, up (degrees)","items":{"description":"deg","maximum":360,"minimum":-360,"type":"number"},"maxItems":3,"minItems":3,"type":"array"},"scale":{"description":"Scale (east, north, up)","items":{"description":"Scale","maximum":1000,"minimum":0.001,"type":"number"},"maxItems":3,"minItems":3,"type":"array"}},"required":["components"],"result":{"$ref":"#/components/schemas/Entity"},"summary":"Place an entity"},{"description":"Move, turn, scale, show or hide an entity.","name":"entity.set","params":{"elevation_m":{"description":"Height above sea level (default: on the ground)","maximum":9000,"minimum":-500,"type":"number"},"entity":{"description":"Entity id","maxLength":80,"type":"string"},"heading_deg":{"description":"Compass heading, 0 = north","maximum":360,"minimum":0,"type":"number"},"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"},"position_m":{"description":"Or: position in the scene frame (ENU at the scene origin; m)","items":{"description":"m","maximum":1000000,"minimum":-1000000,"type":"number"},"maxItems":3,"minItems":3,"type":"array"},"rotation_deg":{"description":"Or: full rotation about east, north, up (degrees)","items":{"description":"deg","maximum":360,"minimum":-360,"type":"number"},"maxItems":3,"minItems":3,"type":"array"},"scale":{"description":"Scale (east, north, up)","items":{"description":"Scale","maximum":1000,"minimum":0.001,"type":"number"},"maxItems":3,"minItems":3,"type":"array"},"visible":{"description":"Shown","type":"boolean"}},"required":["entity"],"result":{"$ref":"#/components/schemas/Entity"},"summary":"Move or change an entity"},{"description":"Remove an entity (and its vehicle, if it is one).","name":"entity.remove","params":{"entity":{"description":"Entity id","maxLength":80,"type":"string"}},"required":["entity"],"result":{"properties":{"entity":{"description":"Removed entity id","type":"string"}},"required":["entity"],"type":"object"},"summary":"Remove an entity"},{"description":"The scripts running in this world and their state.","name":"script.list","params":{},"required":[],"result":{"properties":{"scripts":{"items":{"properties":{"asset":{"description":"Script asset","type":"string"},"entity":{"description":"Entity it belongs to","nullable":true,"type":"string"},"error":{"description":"Why it stopped","nullable":true,"type":"string"},"script":{"description":"Script id","type":"string"},"state":{"description":"State","enum":["starting","running","stopped","failed"],"type":"string"}},"required":["script","asset","entity","state","error"],"type":"object"},"type":"array"}},"required":["scripts"],"type":"object"},"summary":"Scene scripts"},{"description":"Send a message to the scene's scripts (their on(\"message\") handlers), e.g. to start a scenario step.","name":"script.send","params":{"data":{"description":"Any JSON object","type":"object"},"script":{"description":"Only this script (default: all)","maxLength":80,"type":"string"}},"required":["data"],"result":{"properties":{"delivered":{"description":"Scripts that received it","type":"number"}},"required":["delivered"],"type":"object"},"summary":"Message the scripts"},{"description":"Show or replace an on-screen panel: text, bars, buttons, lists, images, timers (as in a scene's ui section). Text is shown as text, never HTML. Paid plans.","name":"ui.set","params":{"id":{"description":"Panel id","maxLength":80,"type":"string"},"panel":{"description":"The panel: anchor, title, widgets (api/scene-v1.json ui.panels item, without id)","type":"object"}},"required":["id","panel"],"result":{"properties":{"id":{"description":"Panel id","type":"string"}},"required":["id"],"type":"object"},"summary":"Show a UI panel"},{"description":"Remove one panel, or all the scene's panels.","name":"ui.clear","params":{"id":{"description":"Panel id (default: all)","maxLength":80,"type":"string"}},"required":[],"result":{"properties":{"cleared":{"description":"Panels removed","type":"number"}},"required":["cleared"],"type":"object"},"summary":"Remove UI panels"},{"description":"Rendered worlds: visible frees the mouse (menus, buttons in panels); hidden captures it for looking and aiming again on the next click. Starts as player.cursor in the scene (locked unless set to visible).","name":"ui.cursor","params":{"visible":{"description":"true: show the cursor; false: hide and capture it","type":"boolean"}},"required":["visible"],"result":{"properties":{"visible":{"type":"boolean"}},"required":["visible"],"type":"object"},"summary":"Show or hide the mouse cursor"},{"description":"A short message on screen.","name":"ui.toast","params":{"duration_s":{"default":3,"description":"How long","maximum":30,"minimum":0.5,"type":"number"},"text":{"description":"Text","maxLength":200,"type":"string"},"tone":{"default":"neutral","description":"Colour","enum":["neutral","accent","good","warn","bad"],"type":"string"}},"required":["text"],"result":{"properties":{"shown":{"type":"boolean"}},"required":["shown"],"type":"object"},"summary":"Show a message"},{"description":"The person playing: mode, position, the vehicle they drive.","name":"player.get","params":{},"required":[],"result":{"properties":{"elevation_m":{"description":"Height above sea level","nullable":true,"type":"number"},"entity":{"description":"That vehicle's entity","nullable":true,"type":"string"},"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"nullable":true,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"nullable":true,"type":"number"},"mode":{"description":"Player mode","type":"string"},"vehicle":{"description":"Vehicle id they drive","nullable":true,"type":"string"}},"required":["mode","lat","lon","elevation_m","vehicle","entity"],"type":"object"},"summary":"Player state"},{"description":"Put the player in a scene vehicle (or out of one), or move them within the scene.","name":"player.set","params":{"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"},"vehicle":{"description":"Vehicle id to drive; empty string to get out","maxLength":32,"type":"string"}},"required":[],"result":{"properties":{"mode":{"description":"Player mode","type":"string"},"vehicle":{"description":"Vehicle id","nullable":true,"type":"string"}},"required":["mode","vehicle"],"type":"object"},"summary":"Move the player"},{"description":"Score, lives, time left, checkpoint and status of the scene's rules.","name":"rules.get","params":{},"required":[],"result":{"$ref":"#/components/schemas/GameState"},"summary":"Game state"},{"description":"Set or add to the score or lives, move to a checkpoint, or end the game (status won or lost).","name":"rules.set","params":{"add_lives":{"description":"Add lives","maximum":99,"minimum":-99,"type":"number"},"add_score":{"description":"Add to the score","maximum":1000000000,"minimum":-1000000000,"type":"number"},"checkpoint":{"description":"Next checkpoint index","maximum":64,"minimum":0,"type":"integer"},"lives":{"description":"Set lives","maximum":99,"minimum":0,"type":"number"},"reason":{"description":"Why (shown to the player)","maxLength":120,"type":"string"},"score":{"description":"Set the score","maximum":1000000000,"minimum":-1000000000,"type":"number"},"status":{"description":"End the game","enum":["playing","won","lost"],"type":"string"}},"required":[],"result":{"$ref":"#/components/schemas/GameState"},"summary":"Change game state"},{"description":"A value kept for this player between plays (keys declared in the scene's store section). In sessions it lasts for the session.","name":"store.get","params":{"key":{"description":"Key","maxLength":80,"type":"string"}},"required":["key"],"result":{"properties":{"key":{"description":"Key","type":"string"},"value":{"description":"The value, or null"}},"required":["key","value"],"type":"object"},"summary":"Read a stored value"},{"description":"Keep a value for this player (number, string up to 1 KB, or boolean, as the key declares).","name":"store.set","params":{"key":{"description":"Key","maxLength":80,"type":"string"},"value":{"description":"The value"}},"required":["key","value"],"result":{"properties":{"key":{"description":"Key","type":"string"},"value":{"description":"The value"}},"required":["key","value"],"type":"object"},"summary":"Store a value"},{"description":"Submit a number to a leaderboard key; the player's best is kept.","name":"store.submit","params":{"key":{"description":"Leaderboard key","maxLength":80,"type":"string"},"name":{"description":"Name to show","maxLength":40,"type":"string"},"value":{"description":"Value","maximum":1000000000000,"minimum":-1000000000000,"type":"number"}},"required":["key","value"],"result":{"properties":{"best":{"description":"The player's best","type":"number"},"rank":{"description":"Rank (1 = first)","nullable":true,"type":"number"}},"required":["best","rank"],"type":"object"},"summary":"Submit a score"},{"description":"The best entries of a leaderboard key.","name":"store.top","params":{"key":{"description":"Leaderboard key","maxLength":80,"type":"string"},"limit":{"default":10,"description":"Entries","maximum":100,"minimum":1,"type":"integer"}},"required":["key"],"result":{"properties":{"entries":{"items":{"properties":{"name":{"description":"Name","type":"string"},"rank":{"description":"Rank","type":"number"},"value":{"description":"Value","type":"number"}},"required":["rank","name","value"],"type":"object"},"type":"array"}},"required":["entries"],"type":"object"},"summary":"Leaderboard"}],"schemas":{"Camera":{"properties":{"alt_m":{"description":"Camera altitude above sea level","type":"number"},"heading_deg":{"description":"Compass heading, 0 = north","maximum":360,"minimum":0,"type":"number"},"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"}},"required":["lat","lon","alt_m","heading_deg"],"type":"object"},"CloudLayer":{"additionalProperties":false,"description":"A cloud layer. Heights are metres above the ground under the viewer. One layer per tier: low (cumulus, cumulus congestus, stratocumulus, stratus, nimbostratus, cumulonimbus), mid (altocumulus, altostratus), high (cirrus, cirrostratus, cirrocumulus).","properties":{"base_m":{"description":"Cloud base above the ground","maximum":14000,"minimum":0,"type":"number"},"coverage":{"description":"Sky covered: few .1-.25, scattered .25-.5, broken .5-.85, overcast .85-1 (default .5)","maximum":1,"minimum":0,"type":"number"},"top_m":{"description":"Cloud top above the ground (default: a typical depth for the type)","maximum":23000,"minimum":0,"type":"number"},"type":{"description":"Cloud type (WMO genus)","enum":["cumulus","cumulus congestus","stratocumulus","stratus","nimbostratus","altocumulus","altostratus","cirrus","cirrostratus","cirrocumulus","cumulonimbus"],"type":"string"}},"required":["type","base_m"],"type":"object"},"Entity":{"description":"An object in the loaded scene, or one placed with entity.spawn.","properties":{"class":{"description":"Semantic class","nullable":true,"type":"string"},"components":{"description":"Its components (primitive, mesh, vehicle, physics, script, trigger, …)","items":{"description":"Component","type":"string"},"type":"array"},"elevation_m":{"description":"Height above sea level","type":"number"},"entity":{"description":"Entity id","type":"string"},"heading_deg":{"description":"Compass heading, 0 = north","type":"number"},"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"nullable":true,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"nullable":true,"type":"number"},"name":{"description":"Name","type":"string"},"position_m":{"description":"Position in the scene frame (ENU at the scene origin: east, north, up; m)","items":{"description":"m","type":"number"},"type":"array"},"vehicle":{"description":"Vehicle id when it is a vehicle under API control","nullable":true,"type":"string"},"visible":{"type":"boolean"}},"required":["entity","name","lat","lon","elevation_m","position_m","heading_deg","visible","components","vehicle","class"],"type":"object"},"Fog":{"additionalProperties":false,"description":"Ground fog.","properties":{"density":{"description":"0 (none) to 1 (thick, ~100 m visibility inside)","maximum":1,"minimum":0,"type":"number"},"top_m":{"description":"Fog top above the ground","maximum":1000,"minimum":10,"type":"number"}},"type":"object"},"GameState":{"description":"The scene's game state (its rules section).","properties":{"checkpoint":{"description":"Next checkpoint index","type":"number"},"checkpoints":{"description":"Checkpoints in all","type":"number"},"elapsed_s":{"description":"Seconds since the game started","type":"number"},"lives":{"description":"Lives left","nullable":true,"type":"number"},"reason":{"description":"Why the game ended","nullable":true,"type":"string"},"score":{"description":"Score","type":"number"},"status":{"description":"Game status","enum":["playing","won","lost"],"type":"string"},"time_left_s":{"description":"Seconds left (countdown)","nullable":true,"type":"number"}},"required":["status","score","lives","time_left_s","elapsed_s","checkpoint","checkpoints","reason"],"type":"object"},"LatLon":{"additionalProperties":false,"properties":{"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"}},"required":["lat","lon"],"type":"object"},"Plan":{"description":"A drivable route.","properties":{"climb_m":{"description":"Total climb","type":"number"},"descent_m":{"description":"Total descent","type":"number"},"length_m":{"description":"Route length","type":"number"},"planning_ms":{"description":"Time spent planning","type":"number"},"steepest_slope_deg":{"description":"Steepest grade along the route","type":"number"},"straight_m":{"description":"Straight-line distance","type":"number"},"waypoints":{"items":{"$ref":"#/components/schemas/LatLon"},"type":"array"}},"required":["waypoints","length_m","straight_m","climb_m","descent_m","steepest_slope_deg","planning_ms"],"type":"object"},"Precipitation":{"additionalProperties":false,"properties":{"intensity":{"description":"0 (none) to 1 (heaviest)","maximum":1,"minimum":0,"type":"number"},"type":{"description":"auto: rain or snow by temperature","enum":["auto","rain","snow"],"type":"string"}},"type":"object"},"RouteState":{"properties":{"elapsed_s":{"description":"Seconds since the route started","type":"number"},"eta_s":{"description":"Estimated seconds to arrival while moving","nullable":true,"type":"number"},"reason":{"description":"Why it stopped","nullable":true,"type":"string"},"remaining_m":{"description":"Distance left along the route","type":"number"},"state":{"description":"Route state","enum":["driving","arrived","blocked","stuck","stopped"],"type":"string"},"waypoint":{"description":"Index of the waypoint being driven to (0-based)","type":"number"},"waypoints":{"description":"Number of waypoints","type":"number"}},"required":["state","reason","waypoint","waypoints","remaining_m","eta_s","elapsed_s"],"type":"object"},"SceneInfo":{"description":"The scene loaded in this world.","properties":{"base":{"description":"What the scene sits on","enum":["earth","flat","heightmap"],"type":"string"},"entities":{"description":"Entities placed","type":"number"},"name":{"description":"Scene name","type":"string"},"origin":{"$ref":"#/components/schemas/LatLon"},"revision":{"description":"Scene revision loaded","type":"number"},"scene":{"description":"Scene id","type":"string"},"scripts":{"description":"Scripts running","type":"number"},"vehicles":{"description":"Vehicle ids of the scene's vehicles under API control","items":{"description":"Vehicle id","type":"string"},"type":"array"},"warnings":{"description":"What could not be placed (missing assets, unsupported models)","items":{"description":"Warning","type":"string"},"type":"array"}},"required":["scene","name","revision","base","origin","entities","vehicles","scripts","warnings"],"type":"object"},"Storms":{"additionalProperties":false,"description":"Thunderstorm cells near the viewer: towers, anvils, rain shafts, gust fronts and lightning (drawn with volumetric clouds).","properties":{"intensity":{"description":"0 (none) to 1 (severe: up to three cells)","maximum":1,"minimum":0,"type":"number"},"lightning":{"description":"Flash rate, 0 (none) to 1; .5 is natural","maximum":1,"minimum":0,"type":"number"}},"type":"object"},"Surface":{"description":"Ground at a point. source \"streamed\": full detail near the camera; \"dem\": elevation only, from the global elevation model.","properties":{"elevation_m":{"description":"Height above sea level","nullable":true,"type":"number"},"landcover":{"description":"Land-cover class, e.g. Grassland, Tree cover","nullable":true,"type":"string"},"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"type":"number"},"slope_deg":{"description":"Ground slope","nullable":true,"type":"number"},"source":{"description":"Where the answer came from","enum":["streamed","dem"],"type":"string"},"water_depth_m":{"description":"Water above the ground","nullable":true,"type":"number"}},"required":["lat","lon","elevation_m","slope_deg","landcover","water_depth_m","source"],"type":"object"},"Telemetry":{"description":"Live state of a vehicle.","properties":{"asset":{"description":"Vehicle asset id (custom vehicles)","nullable":true,"type":"string"},"elevation_m":{"description":"Height above sea level","type":"number"},"entity":{"description":"Scene entity id, when the vehicle belongs to the loaded scene","nullable":true,"type":"string"},"ground":{"nullable":true,"properties":{"landcover":{"description":"Land-cover class","type":"string"},"slope_deg":{"description":"Ground slope","type":"number"},"water_depth_m":{"description":"Water above the ground","type":"number"}},"required":["slope_deg","landcover","water_depth_m"],"type":"object"},"grounded":{"description":"Wheels on the ground","type":"boolean"},"heading_deg":{"description":"Compass heading, 0 = north","type":"number"},"health":{"description":"Condition, 1 = undamaged, 0 = wrecked","maximum":1,"minimum":0,"type":"number"},"kind":{"description":"Vehicle kind (custom: a vehicle asset)","enum":["car","pickup","truck","firetruck","custom"],"type":"string"},"lat":{"description":"Latitude, WGS84 degrees","maximum":90,"minimum":-90,"nullable":true,"type":"number"},"lon":{"description":"Longitude, WGS84 degrees","maximum":180,"minimum":-180,"nullable":true,"type":"number"},"odometer_m":{"description":"Distance driven since spawn","type":"number"},"pitch_deg":{"description":"Nose up positive","type":"number"},"roll_deg":{"description":"Right side down positive","type":"number"},"route":{"$ref":"#/components/schemas/RouteState","nullable":true},"speed_kmh":{"description":"Speed","type":"number"},"speed_mps":{"description":"Speed","type":"number"},"vehicle":{"description":"Vehicle id","type":"string"},"weather":{"$ref":"#/components/schemas/Weather"}},"required":["vehicle","kind","lat","lon","elevation_m","heading_deg","speed_mps","speed_kmh","pitch_deg","roll_deg","ground","health","odometer_m","grounded","weather","route"],"type":"object"},"Weather":{"description":"Simulated weather at this point (not real-world observations).","properties":{"cloud_cover":{"description":"Cloud cover overhead, 0 to 1","maximum":1,"minimum":0,"type":"number"},"label":{"description":"Conditions, e.g. Clear, Rain","type":"string"},"precipitation_intensity":{"description":"Rain or snow intensity, 0 (none) to 1 (heaviest)","maximum":1,"minimum":0,"type":"number"},"pressure_hpa":{"description":"Sea-level pressure","type":"number"},"temperature_c":{"description":"Air temperature","type":"number"},"visibility_m":{"description":"Horizontal visibility","type":"number"},"wind_mps":{"description":"Wind speed","type":"number"}},"required":["label","temperature_c","precipitation_intensity","wind_mps"],"type":"object"},"WeatherState":{"description":"A complete weather description (designed weather): cloud layers, precipitation, wind by height, visibility, fog, temperature, pressure and storms.","properties":{"clouds":{"items":{"$ref":"#/components/schemas/CloudLayer"},"maxItems":3,"type":"array"},"fog":{"$ref":"#/components/schemas/Fog"},"precipitation":{"$ref":"#/components/schemas/Precipitation"},"pressure_hpa":{"description":"Sea-level pressure","maximum":1080,"minimum":900,"type":"number"},"storms":{"$ref":"#/components/schemas/Storms"},"temperature_c":{"description":"Air temperature at the ground (falls 6.5 C per km above)","maximum":55,"minimum":-60,"type":"number"},"visibility_m":{"description":"Visibility outside fog","maximum":100000,"minimum":100,"type":"number"},"wind":{"items":{"$ref":"#/components/schemas/WindLevel"},"maxItems":8,"minItems":1,"type":"array"}},"required":["clouds","precipitation","wind","visibility_m","fog","temperature_c","pressure_hpa","storms"],"type":"object"},"WindLevel":{"additionalProperties":false,"description":"Wind at one height. Levels are interpolated; the lowest is the surface wind.","properties":{"altitude_m":{"description":"Height above the ground (0 = surface)","maximum":20000,"minimum":0,"type":"number"},"direction_deg":{"description":"Where the wind blows from, 0 = north, 90 = east","maximum":360,"minimum":0,"type":"number"},"gust_mps":{"description":"Gusts above the mean speed","maximum":50,"minimum":0,"type":"number"},"speed_mps":{"description":"Mean speed","maximum":100,"minimum":0,"type":"number"}},"required":["altitude_m","direction_deg","speed_mps"],"type":"object"}},"version":"2026-11-07"}