Push GPS positions to the telemetry API
telem_create_positions.RdUploads position data as events in batches. Events are created with
type = "Position" and status = "New". The server's ProcessGPS job
later extracts coordinates from the payload and creates position event
records.
Arguments
- data
A tibble with columns:
device_id,date,source,payload(seetelem_add_payload()).typedefaults to"Position"andstatusto"New"when absent;project_idis filled in automatically from the session. Any other columns – such as the source columnstelem_add_payload()deliberately keeps – are dropped before sending, rather than warned about.deployment_idis the exception: it is sent, and warned about, because the API accepts the write and then discards it (seetelem_create_events()).- batch_size
Integer. Number of events to send per API request. Default 1000.
- dry_run
Logical. If
TRUE, prints the first batch request without sending it.- verbosity
Integer. How much information to print (0 = silent, 1 = headers, 2 = headers + body, 3 = full).