Poll a 3D extract job
Reads the job directory on disk (cache/building3d/jobs/<jobId>/): result.json, written by the worker when it finishes, decides ready (ok) or error (with the message); until then state.json - written by the route at spawn time and updated by the worker with a phase (geocoding/locating, tile, clip, build, zip, email) - reports queued or running. Disk is the truth, so a poll may hit either pm2 cluster worker. A job still running with no update for 60 minutes is reported as error (stale). When the directory has been evicted, the 24 h Redis mirror is consulted as a fallback and a formerly ready job is reported as error (nothing left to download); with neither, 404.
Accepts the token in the token header or as ?token= so the URL can be polled from a Grasshopper HTTP component or a browser.
https://res.aireon.ch/res_api/building3d-extract/status/{jobId}Authorization
Path parameters
Query parameters
Returns
200
Current job state. files is empty until ready; downloadUrl is set only when ready.