Skip to the page
Docs menu

Docs Platform

Trace origin

Tie each load to the tract it was harvested from, trace every log to it, keep where each log was measured, and export the plots as EUDR-checked GeoJSON.

Used in step 1: Create. Draw the tract and tie the load to it; read the origin of any log or group in step 3.

Timbereye keeps two facts for every log, and never mixes them:

FactWhat it isWhere it lives
OriginThe tract (harvest plot) the log's load is tied toorigin_place_id and origin on the group; origin on the item
Where measuredWhere and when the scan was taken, and the known place it fell inlocation, measured_place_id, place_match on the scan; measured on the item

A load is tied to a tract once. Every log first measured into that load traces to the tract, also after it is moved to a deck, a container or another group. A log measured at a mill yard far from its tract is normal: its origin comes from its load, not from where the phone was.

1. Add the tract#

A tract is a place of type tract with a boundary. In the console, open Places, make the tract, then Draw or upload a boundary: click its corners, or upload GeoJSON, KML, KMZ or a zipped shapefile in WGS 84. The console shows the area, and anything the EU system would refuse, before you save. From your server:

TypeScript
const timbereye = new Timbereye() // reads TIMBEREYE_SECRET_KEY
const tract = await timbereye.places.create({
    type: "tract",
    name: "Tract 14",
    externalRef: "T-14",
    point: { lat: 0.40045, lon: 9.40045 },
    geometry: {
        type: "Polygon",
        coordinates: [
            [
                [9.4, 0.4],
                [9.4009, 0.4],
                [9.4009, 0.4009],
                [9.4, 0.4009],
                [9.4, 0.4],
            ],
        ],
    },
})
curl
curl https://api.timbereye.com/v1/places \
  -H "Authorization: Bearer $TIMBEREYE_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{ "type": "tract", "name": "Tract 14", "external_ref": "T-14", "point": { "lat": 0.40045, "lon": 9.40045 },
        "geometry": { "type": "Polygon",
          "coordinates": [[[9.4, 0.4], [9.4009, 0.4], [9.4009, 0.4009], [9.4, 0.4009], [9.4, 0.4]]] } }'
CLI
timbereye places create --type tract --name "Tract 14" --external-ref T-14 \
  --lat 0.40045 --lon 9.40045 --geometry @tract14.geojson --json
JSON
{
    "id": "plc_4Hk2pT",
    "object": "place",
    "type": "tract",
    "name": "Tract 14",
    "external_ref": "T-14",
    "point": { "lat": 0.40045, "lon": 9.40045 },
    "area_ha": 1.0,
    "eudr": { "valid": true, "issues": [] }
}

Yards, landings, mills and ports are places too (yard, landing, mill, port, warehouse, other). Give them a boundary and scans taken inside them say so (measured_place_id). They are never an origin.

2. Tie the load to the tract#

Set origin_place_id when you create or open the load, or later:

TypeScript
await timbereye.groups.update("grp_7QxV3m", { originPlaceId: "plc_4Hk2pT" })
curl
curl -X PATCH https://api.timbereye.com/v1/groups/grp_7QxV3m \
  -H "Authorization: Bearer $TIMBEREYE_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "origin_place_id": "plc_4Hk2pT" }'
CLI
timbereye groups update grp_7QxV3m --origin-place plc_4Hk2pT --json

An origin gets onto a load in one of three ways, none of them required:

  • On the phone. The Timbereye app's New group has an optional Tract choice, pre-selected with the tract the phone is standing in (else the last one used). The group screen shows "Origin: Tract 14" and changes it in one tap.
  • From your server or the console, as above: typically from the haul ticket, which names the tract.
  • From location. When a scan is created for a load that has no origin, and its location lies inside exactly one tract's boundary, Timbereye ties the load to that tract and records the scan as evidence. This only fills an empty origin. It never changes an origin that is set, so a person's choice is never overwritten.

origin_place_id: null clears the origin and its provenance; the next located scan may then fill it.

3. Read the origin#

The group says how its origin was determined:

JSON
{
    "id": "grp_7QxV3m",
    "object": "group",
    "kind": "truck_load",
    "origin_place_id": "plc_4Hk2pT",
    "origin": {
        "place_id": "plc_4Hk2pT",
        "source": "location",
        "determined_at": "2026-11-25T10:42:07Z",
        "assigned_by": null,
        "evidence": {
            "scan_id": "scn_9a2Lk",
            "location": {
                "lat": 0.40045,
                "lon": 9.40045,
                "accuracy_m": 6,
                "captured_at": "2026-11-25T10:41:58Z"
            },
            "inside_by_m": 41.2,
            "accuracy_m": 6,
            "rule": "boundary_v1"
        }
    }
}

Each log says where it was harvested (through its load) and where it was measured:

JSON
{
    "id": "itm_5Xb2",
    "object": "item",
    "group_id": "grp_Deck4",
    "origin": { "place_id": "plc_4Hk2pT", "group_id": "grp_7QxV3m" },
    "measured": {
        "scan_id": "scn_9a2Lk",
        "location": {
            "lat": 0.51012,
            "lon": 9.38811,
            "accuracy_m": 5,
            "captured_at": "2026-11-26T07:15:02Z"
        },
        "place_id": "plc_MillYardA"
    }
}

For EUDR, export a group's plots with GET /groups/{id}/origin (below).

Reference#

Group: origin#

Null when origin_place_id is null.

FieldMeaning
place_idThe tract, as origin_place_id
sourceassigned (a person or an API call chose it) or location (a scan's location was inside the boundary)
determined_atWhen it was assigned or derived
assigned_by{ type, id }: user (a person, also on the phone), scanner (a scanner the organisation added) or key; null for location and for origins set before 25 November 2026
evidenceFor location: scan_id, the location as the device sent it, inside_by_m, accuracy_m, rule

A change of origin, including one the location rule makes, is a group.updated event with the new snapshot.

Item: origin and measured#

FieldMeaning
origin.place_idThe tract: the origin of the first group the log was measured into, or of a group enclosing that one; else of the group it is in now, or of one enclosing it
origin.group_idThe group whose origin it is, usually the load
measured.scan_idThe scan that created the log
measured.location{ lat, lon, accuracy_m, captured_at } as the device sent it; null when location was off
measured.place_idThe known place the location lies inside (a yard, a landing), or null

origin is null when no group on the log's path is tied to a tract. Tying a load later changes the origin of every log first measured into it.

Scan: location, measured_place_id, place_match#

location is stored as the device sent it, whether or not it matches anything, and is never changed. The SDKs send it when the worker allowed location; scanning works without it. When the scan is created, its location is matched once against your places:

RuleValue
Places that matchOnly places with a Polygon or MultiPolygon boundary. A place with only a point never matches: a point has no extent
AccuracyA fix with no accuracy_m, or worse than 50 m, matches nothing (accuracy_poor)
InsideThe fix must be inside the boundary (holes excluded) by more than its accuracy; nearer the edge than that matches nothing
TimeA fix taken more than an hour from the scan's started_at matches nothing (fix_stale)
OriginExactly one tract inside, and no other tract inside or within the accuracy; else ambiguous
Where measuredThe smallest place of any type the fix is inside
AntimeridianA boundary crossing longitude 180 is skipped

place_match has result (matched, other_tract, ambiguous, no_match, accuracy_poor, fix_stale, no_location), tract_place_id, measured_place_id, inside_by_m, accuracy_m, candidates (each place the fix is inside or near: place_id, type, relation inside or uncertain, distance_to_boundary_m), rule and checked_at. other_tract means the load is already tied to another tract and nothing changed.

A boundary drawn after a scan does not re-match that scan; tie such loads yourself.

Geometry rules#

On write, coordinates are rounded to six decimals (about 0.11 m), an unclosed ring is closed, a third (altitude) coordinate is dropped, and rings are wound as GeoJSON recommends. eudr on a place is { valid, issues }. A geometry with issues is stored, and its issues are reported.

CodeMeaningSource
polygon_has_holesA polygon has holes. The EU information system does not accept themEU GeoJSON file description
self_intersectionA ring crosses or touches itselfEU GeoJSON file description
ring_not_closedFirst and last positions differ (closed on write)EU GeoJSON file description
too_many_decimalsMore than six decimals (the EU system keeps six)EU GeoJSON file description
polygon_required_above_4haA Point for a plot stated to exceed 4 haEU guidance
point_area_unknownExport only: a Point with no stated areaTimbereye (conservative)
rings_intersect, holes_overlap, hole_outside_shell, polygons_overlap, antimeridian_crossing, zero_area, duplicate_consecutive_pointsGeneral GeoJSON validityNot verified as EU rules

Codes are lower snake case; new codes may appear within v1. The "EU GeoJSON file description" is the EUDR Information System's GeoJSON description (updated 17 August 2026): WGS84 decimal degrees; Point, MultiPoint, Polygon and MultiPolygon; closed rings; no holes; no crossing lines; coordinates truncated to six decimals; 25 MB per statement. Timbereye has not checked the regulation's own text. Check rules against it before you rely on them.

POST /places/validate checks a geometry without saving it and returns eudr, normalized_geometry and area_ha:

TypeScript
const check = await timbereye.places.validate({
    geometry: {
        type: "Polygon",
        coordinates: [
            [
                [9.4, 0.4],
                [9.4009, 0.4],
                [9.4009, 0.4009],
                [9.4, 0.4],
            ],
        ],
    },
})
curl
curl https://api.timbereye.com/v1/places/validate \
  -H "Authorization: Bearer $TIMBEREYE_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "geometry": { "type": "Polygon", "coordinates": [[[9.4, 0.4], [9.4009, 0.4], [9.4009, 0.4009], [9.4, 0.4]]] } }'
CLI
timbereye places validate --geometry @plot.geojson --json
JSON
{
    "object": "place_validation",
    "livemode": false,
    "eudr": { "valid": true, "issues": [] },
    "normalized_geometry": {
        "type": "Polygon",
        "coordinates": [
            [
                [9.4, 0.4],
                [9.4009, 0.4],
                [9.4009, 0.4009],
                [9.4, 0.4]
            ]
        ]
    },
    "area_ha": 0.5
}

A Point, or a place with no geometry, may state area_ha; for a Polygon or MultiPolygon the area is computed and a stated one is 422 area_ha_not_allowed. A place a group uses as its origin cannot be deleted (409 place_in_use; in test mode detach=true clears those origins). GET /places also lists ports Timbereye shares with every account (owner=account lists only yours); they can be read and used, and changing one is 403 shared_resource_read_only. The console lists only your own places.

The origin export#

TypeScript
const origin = await timbereye.groups.origin("grp_7QxV3m")
curl
curl https://api.timbereye.com/v1/groups/grp_7QxV3m/origin \
  -H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"
CLI
timbereye groups origin grp_7QxV3m --json
JSON
{
    "object": "origin",
    "livemode": false,
    "type": "FeatureCollection",
    "eudr_valid": true,
    "empty": false,
    "count": 142,
    "volume": { "rule": "jas", "m3": 21.384 },
    "unattributed": { "count": 0, "volume_m3": 0 },
    "features": [
        {
            "type": "Feature",
            "geometry": { "type": "Polygon", "coordinates": [] },
            "properties": {
                "place_id": "plc_4Hk2pT",
                "name": "Tract 14",
                "external_ref": "T-14",
                "area_ha": 1.0,
                "count": 142,
                "volume": { "rule": "jas", "m3": 21.384 },
                "eudr": { "valid": true, "issues": [] }
            }
        }
    ]
}

coordinates is shortened here. There is one feature per tract the group's logs trace to, counted log by log over the group and every group inside it, each with its count and volume. A tract a group is tied to before any log is in it appears with count: 0. Logs with no traced origin, or whose tract you cannot see, are in unattributed. A place whose geometry breaks a rule is included with its issues and makes eudr_valid false. An export with no features is empty: true and never valid. Check that unattributed.count is 0 before you rely on it.

What this does and does not do#

Timbereye doesTimbereye does not
Store tracts and other places with boundaries, drawn or uploadedScreen for deforestation or land-use change
Check geometry against the rules above and report issuesRecord the date or period of harvest (EUDR asks for it)
Keep where each scan was taken, and the place it fell inRe-match old scans when a boundary is drawn later
Tie a load to a tract (a person, your server, or a scan's location)Build or file due-diligence statements
Trace every log to its load's tract, and export plots with count and volumeEmit the EU file's Area or ProducerCountry properties

An origin is only as true as the tie a person made or the boundary a person drew. Compliance is the operator's responsibility. eudr_valid: true means the geometry passed the checks above, not that a declaration is complete.