class FloraResourceSearcher: username = '******' not_password = '******' limit = 10 radius = 1 def __init__(self, lat, lon): self.x = long self.y = lat self.search_controller = OccurrenceSearchController(self.username, self.not_password) def search(self): return self.search_controller.get_occurrence_search_search({ 'decimalLatitude': self.x, 'decimalLongitude': self.y, 'limit': self.limit, 'radius':self.radius, })
def __init__(self, lat, lon): self.x = long self.y = lat self.search_controller = OccurrenceSearchController(self.username, self.not_password)