Ejemplo n.º 1
0
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,
        })
Ejemplo n.º 2
0
 def __init__(self, lat, lon):
     self.x = long
     self.y = lat
     self.search_controller = OccurrenceSearchController(self.username, self.not_password)