Skip to Content
truemetrics Docs

Data Export

Export format

The columns of the daily stop KPI and location files.

The daily export holds two kinds of data:

  • Stop KPIs: one row per stop, with its durations.
  • Location data: the parking places and entrances truemetrics learned, one row per position.

On S3 (AWS and Google Cloud) stop KPIs are Parquet files and location data are GeoParquet files. On SFTP both are CSV by default, Parquet where agreed. Each export comes with a schema_*.json that lists the columns of the files in it; where it differs from the tables below, the schema file is right for your account. Folder and file names are in Update and versioning.

Stop KPIs

A stop runs from parking to driving off. truemetrics detects the courier’s steps during the stop and stores them as states with their times in ts; each duration below is the time between two of them.

Animation: a timeline from parking (S) to driving off (F) fills up segment by segment: picking (S to C), outdoor to customer (C to E), indoor (E to B), outdoor from customer (B to S2) and buffer (S2 to F). Then t_search is marked as the part of the way in that is longer than the way back, service time as the three segments between leaving and reaching the vehicle, and t_total as the whole stop.
The durations of one stop and the columns they are in.

Times are seconds, timestamps are Unix time in seconds (UTC). Lists are stored as text.

ColumnTypeUnitMeaning
id_stopstringtruemetrics’ ID of the stop.
ts_start, ts_endnumbertimestampStart and end of the stop’s time window.
statesstring (list)The detected steps, in order: S parked, C leaves the vehicle, E enters the building, B back outside, S2 back at the vehicle, F drives off. Other codes can appear in between.
tsstring (list)timestampThe time of each entry in states.
t_pickingnumbersS to C: from parking to leaving the vehicle.
t_outdoor_to_customernumbersC to E: from the vehicle to the building entrance.
t_indoornumbersE to B: inside the building.
t_outdoor_from_customernumbersB to S2: from the building back to the vehicle.
t_buffernumbersS2 to F: back at the vehicle until driving off, usually to prepare the next delivery.
t_totalnumbersS to F: the whole stop (stopping time), the five durations above added up.
t_searchnumberst_outdoor_to_customer − t_outdoor_from_customer: how much longer the way in took than the way back, an estimate of the time spent finding the entrance; waiting at the door or carrying a heavy parcel add to it too. Empty without a detected entrance; can be negative.
ts_eventsstring (list)timestampThe times of your metadata events during the stop, failed delivery attempts included.
number_of_deliveries_in_stopnumbercountThe number of entries in ts_events, so a failed delivery attempt counts too.
visitsstring (list)One entry per entrance walked to during the stop, for stops that serve several addresses.
distance_stationary_stop, distance_walking_stop, distance_driving_stopnumbermDistance covered standing, walking and driving between S and F.
dt_stationary_stop, dt_walking_stop, dt_driving_stopnumbersTime spent standing, walking and driving between S and F.
id_stop_nextstringid_stop of the device’s next stop.
distance_next_stopnumbermDistance from F of this stop to S of the next.
dt_next_stopnumbersTime from F of this stop to S of the next.
ang_lat, ang_lonnumberdegrees (WGS 84)Position of the stop.
h3_10stringH3 cell of the stop at resolution 10, for spatial aggregation.
extra_columnsstring (JSON)The extra keys of the stop’s metadata, as you sent them.
t_utc_creatednumbertimestampWhen truemetrics computed the stop.
id_api_key, id_phonestringYour account and the device the stop was recorded on.
year, month, daynumberUTC date of the stop.
t_utcnumbertimestampInternal partition time.
your metadata keys, <key>_multistring, string (list)Customer-specific: keys of your metadata in columns of their own, where agreed.
timestamp_stop_beginningstringISO 8601, UTCCustomer-specific: the time of S, in place of ts, states, ts_start, ts_end and t_utc.

Some accounts get a fixed subset of these columns in a fixed order; the schema file lists them.

Without a detected entrance (no E in states), t_indoor is 0, the time from C to S2 is split evenly between t_outdoor_to_customer and t_outdoor_from_customer, and t_search is empty.

Example row of stop KPIs

An illustrative row (not real data), shortened by the distance_*, dt_*, visits and partition columns:

{
  "id_stop": "72d56efe2b8cdd0f43546fa490ec80717f3bcad38980ad0a78fd1fbfd9d53f69",
  "ts_start": 1793697231.6,
  "ts_end": 1793697509.2,
  "states": "['S', 'C', 'E', 'B', 'S2', 'F']",
  "ts": "[1793697245.0, 1793697283.0, 1793697335.0, 1793697430.0, 1793697471.0, 1793697497.0]",
  "t_picking": 38.0,
  "t_outdoor_to_customer": 52.0,
  "t_indoor": 95.0,
  "t_outdoor_from_customer": 41.0,
  "t_buffer": 26.0,
  "t_total": 252.0,
  "t_search": 11.0,
  "ts_events": "[1793697392.0]",
  "number_of_deliveries_in_stop": 1,
  "ang_lat": 52.5198,
  "ang_lon": 13.4047,
  "h3_10": "8a1f1d48945ffff",
  "extra_columns": "{\"depot_id\": \"BER-3\"}",
  "t_utc_created": 1793750412.8,
  "year": 2026,
  "month": 11,
  "day": 3
}

Location data

One row per parking place or entrance. Entrances and parking places come in separate files; where agreed, a third file holds waypoints.

ColumnTypeUnitMeaning
merge ID, e.g. id_addressstringYour identifier of the address the position belongs to (Address ID). The column is named after the merge ID agreed with you, id_address if none was agreed.
type_positionstringentrance_merged or parking_merged (waypoint_merged in the waypoint file). Some fixed schemas leave it out; the file name tells the type.
ang_lat, ang_lonnumberdegrees (WGS 84)The position. 0, 0 marks a deletion, see Update and versioning.
geometrybinaryWKB point, EPSG:4326The same point as ang_lat/ang_lon. GeoParquet files on S3 only.
accuracynumbermEstimated accuracy. For entrances it usually improves with each detection, because detections are fused. For parking places it is harder to read, as couriers don’t always park in the same spot.
cluster_sizeintegercountThe number of detections merged into this position.
rankintegerOrder within the positions of one type for the same address. Only present when more than one entrance or parking place per address is agreed.
h3_10stringH3 cell of the position at resolution 10.
id_positionstringtruemetrics’ internal ID of the position. It can change for the same address; avoid using it for filtering.
t_utc_creatednumbertimestampWhen the position was computed, typically a few hours after the delivery.
validation_resultstringCustomer-specific: the result of truemetrics’ validation of the position.
lat_reference_external, lon_reference_externalnumberdegrees (WGS 84)Customer-specific: your own reference coordinate for the address, for comparison.
distance_reference_externalnumbermCustomer-specific: distance from the position to the nearest of your reference coordinates.
address fieldsstringCustomer-specific: address fields from your metadata, such as street, house number, postcode and city.

On SFTP, if entrances and parking places are merged on different IDs, both files carry both ID columns, and the one that does not apply to the file is empty.

Example row of location data

An illustrative entrance row (not real data). geometry is shown as WKT; the file stores it as WKB.

{
  "id_address": "ADR-0418823",
  "type_position": "entrance_merged",
  "ang_lat": 52.52016,
  "ang_lon": 13.40502,
  "geometry": "POINT (13.40502 52.52016)",
  "accuracy": 4.2,
  "cluster_size": 7,
  "h3_10": "8a1f1d489447fff",
  "id_position": "a4f5d3ab275316f0a4458f1bf620862f0b98b0eab609bf92c28af3b9defadeaa",
  "t_utc_created": 1793752513.7
}

On this page