Skip to content

location_pb2

frequenz.api.common.v1.location_pb2 ¤

Generated protocol buffer code.

Classes¤

frequenz.api.common.v1.location_pb2.Location ¤

Bases: Message

A pair of geographical co-ordinates, representing the location of a place.

Source code in frequenz/api/common/v1/location_pb2.py
)
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()




DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%frequenz/api/common/v1/location.proto\x12\x16\x66requenz.api.common.v1\"E\n\x08Location\x12\x10\n\x08latitude\x18\x01 \x01(\x02\x12\x11\n\tlongitude\x18\x02 \x01(\x02\x12\x14\n\x0c\x63ountry_code\x18\x03 \x01(\tb\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'frequenz.api.common.v1.location_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  DESCRIPTOR._loaded_options = None
  _globals['_LOCATION']._serialized_start=65
  _globals['_LOCATION']._serialized_end=134
# @@protoc_insertion_point(module_scope)
Attributes¤
country_code: builtins.str instance-attribute ¤

Country ISO 3166-1 Alpha 2

latitude: builtins.float instance-attribute ¤

Latitude ranges from -90 (South) to 90 (North)

longitude: builtins.float instance-attribute ¤

Longitude ranges from -180 (West) to 180 (East)