GPS Location

Pre-requisite: The user has to be signed in to perform the following operations.

A Trail camera records where it was placed. DeviceModel.gpsCoordinates carries the latitude, longitude, an optional name for the spot and lastUpdateTime. Cameras with their own receiver advertise the gps cluster (supportsGps) with latitude and longitude attributes; for the rest, the app sets the position from the phone.


Update Device GPS Location

To record the camera’s position and a name for it, The following method can be used:

  • spaceId (required): The space ID of the device.
  • deviceId (required): The device ID.
  • request (required): UpdateDeviceGpsLocationRequest(latitude:longitude:name:). Coordinates are decimal-degree strings.
Factory.deviceService.updateDeviceGpsLocation(
        spaceId: String,
        deviceId: String,
        request: UpdateDeviceGpsLocationRequest
    ) -> IVPublisher<Void>