diff --git a/pybikes/base.py b/pybikes/base.py index b98e636ac..b0f94c0fb 100644 --- a/pybikes/base.py +++ b/pybikes/base.py @@ -62,11 +62,11 @@ def to_json(self, **args): def get_hash(self): """ Return a unique hash representing this station, usually with - latitude and longitude, since it's the only globally ready and - reliable information about an station that defines the + name, latitude and longitude, since it's the only globally ready + and reliable information about an station that defines the difference between one and another """ - str_rep = "%d,%d" % (int(self.latitude * 1E6), int(self.longitude * 1E6)) + str_rep = "%s,%d,%d" % (self.name, int(self.latitude * 1E6), int(self.longitude * 1E6)) h = hashlib.md5() h.update(str_rep.encode('utf-8')) return h.hexdigest()