Skip to content

Commit

Permalink
add get_municipio_id from geo endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Papon authored and Julien Papon committed Jul 19, 2024
1 parent 1b9f971 commit 536dcb5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions geosyspy/geosys.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,3 +1289,14 @@ def get_farm_info_from_location(self, latitude: str, longitude: str):
"""

return self.__gis_service.get_farm_info_from_location(latitude, longitude)

def get_municipio_id_from_geometry(self, geometry:str):
"""get Municipio id from a geometry
Args:
geometry (str): the geometry (WKT or GeosJson) to retrieve the municipio Id
Returns:
the internal id of the municipio
"""

return self.__gis_service.get_municipio_id_from_geometry(geometry)

0 comments on commit 536dcb5

Please sign in to comment.