Skip to contents

The Zonar API sometimes returns badly formatted data. Use zonar_cleanup to tidy it up.

Use zonar_cleanup to augment and format the sometimes messy data returned by the zonar API.

Usage

zonar_cleanup(data)

# S3 method for zonarsched
zonar_cleanup(data)

Arguments

data

Data returned by one of the zonar_get_* functions.

Details

Assets can be recorded as repeatedly going in and out of a zone in short periods of time, try to clean that up. Another problem is that assets can pass through zones incidentally. zonar_cleanup tries to adress this by grouping repeated gps zone events that occur in a short time, while keeping separate pass-throughs separate.

Methods (by class)

  • zonar_cleanup(zonarsched): Cleanup Zonar schedule data