eemont.feature.plusCodes

eemont.feature.plusCodes(self, codeLength=10)[source]

Converts the coordinates of the geometry of an ee.Feature to Plus Codes.

Parameters
  • self (ee.Feature) – The feature to extract coordinates from.

  • codeLength (int, default = 10) – The number of significant digits in the output codes, between 2 and 15. Shorter codes are less precise.

Returns

The coordinates of the geometry converted to Plus Codes. The structure of the Plus Codes array will be identical to the structure returned by ee.Geometry.coordinates().

Return type

list | str

Examples

>>> import ee, eemont
>>> ee.Authenticate()
>>> ee.Initialize()
>>> pt = ee.Feature(ee.Geometry.Point([-105, 40]))
>>> pt.plusCodes()
'85GQ2222+22'