Ejemplo n.º 1
0
 def set_bearing_accuracy_unit(self, unit: common.Unit) -> "BestLocation":
     """
     Sets the unit associated with bearing accuracy
     :param unit: Unit to set
     :return: A modified instance of self
     """
     redvox.api1000.common.typing.check_type(unit, [common.Unit])
     # noinspection Mypy
     self._proto.bearing_accuracy_unit = unit.into_proto()
     return self
Ejemplo n.º 2
0
 def set_unit(self, unit: common.Unit) -> "BestTimestamp":
     """
     Sets the unit of the best timestamps.
     :param unit: Unit to set.
     :return: A modified instance of self.
     """
     redvox.api1000.common.typing.check_type(unit, [common.Unit])
     # noinspection Mypy
     self._proto.unit = unit.into_proto()
     return self
Ejemplo n.º 3
0
 def set_latitude_longitude_unit(self, unit: common.Unit) -> "BestLocation":
     """
     Sets the unit associated with latitude and longitude
     :param unit: Unit to set
     :return: A modified instance of self
     """
     redvox.api1000.common.typing.check_type(unit, [common.Unit])
     # noinspection Mypy
     self._proto.latitude_longitude_unit = unit.into_proto()
     return self