Skip to content

Commit 3786fe5

Browse files
Add country code to the Location message (#53)
Some control parameters change depending upon the country of the microgrid. While the country code can be derived from the geo-coordinates, it is better to expose it via our APIs, so that the behaviour of obtaining the codes is more consistent, and clients do not need to worry about it. closes #52
2 parents 28dcd7c + a81b21d commit 3786fe5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
## New Features
1212

1313
* Added a new message named `Location`, representing the co-ordinates of a
14-
geographical location.
14+
geographical location and the corresponding country-code.
1515

1616
* Added a new variant `COMPONENT_CATEGORY_RELAY` to the `ComponentCategory`
1717
enum.

proto/frequenz/api/common/location.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ message Location {
1616

1717
// Longitude ranges from -180 (West) to 180 (East)
1818
float longitude = 2;
19+
20+
// Country ISO 3166-1 Alpha 2
21+
string country_code = 3;
1922
}

0 commit comments

Comments
 (0)