Skip to content

Populate last_point field on /api/eud responses #288

@jakobbuis

Description

@jakobbuis

Problem

The /api/eud response includes a last_point field, but in current builds it always returns null. To get the latest known position for each EUD, clients must issue a separate /api/point?uid=… request per EUD (or a bulk /api/point query and dedupe client-side). Both patterns multiply round-trips for what should be a single call.

Proposal

Populate last_point with the EUD's most recent point row (same shape as /api/point results) when the field is present in the schema. Optionally, expose a query param like include=last_point to keep responses lean for clients that don't need it.

Why

Collapses EUD discovery + position fetch into a single HTTP request. For clients implementing offline catchup against OTS, this is the difference between O(1) and O(N) round-trips on every reconnect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions