get_GPS: get_GPS.

Description Usage Arguments Details Value Examples

Description

get_GPS get GPS measurements from devices.

Usage

1
2
get_GPS(tenant, username, password, device_list,
  start_date = "1900-01-01T00:00:00Z", end_date = NULL)

Arguments

tenant

The tenant code required for access to the GAP API. This is provided by CoSignal support.

username

Username used to access the ninja tracking control panel.

password

Password used to access the ninjac tracking control panel. removed?

device_list

A character vector of device ids over which the function will iterate. These are obtained with get_devices.

start_date

date from which observations will begin, given as a character vector of length one in the format: yyyy-mm-ddT00:00:00Z. Defaults to 1900-01-01T00:00:00Z. Currently functionality to select by date has not been implemented, but will be in a future version.

end_date

date at which observations will end, given as a character vector of length one in the format: yyyy-mm-ddT00:00:00Z. Defaults to null. Currently functionality to select by date has not been implemented, but will be in a future version

Details

This function accesses the GAP API to extract GPS meassages for a given device number between a date range. The function is essentially a wrapper for the gapAPI::get_messages and internal gapAPI::simplify_format functions.

Value

A character vector of device IDs for the appropriate tenant.

Examples

1
2
3
4
5
6
7
messages <- get_GPS <- function(
device = <device>,
tenant = <tenant-code>,
username = <username>,
password = <password>
)
print(messages)

maupson/gapAPI documentation built on May 21, 2019, 1:37 p.m.