aswi2020sebela-gitlab/modules/crawler/Utilities/Database/DatabaseDataLine.py @ 4cc90563
1 |
class DatabaseDataLine: |
---|---|
2 |
"""
|
3 |
Class that specifies the look of data line in database
|
4 |
"""
|
5 |
def __init__(self, name, longitude, latitude, date, occurrence): |
6 |
self.name = name |
7 |
self.latitude = latitude |
8 |
self.longitude = longitude |
9 |
self.date = date |
10 |
self.occurrence = occurrence |
11 |
|
12 |
def to_dictionary(self): |
13 |
return {"place": self.name, "x": self.longitude, "y": self.latitude, "number": self.occurrence, |
14 |
"date": self.date} |