mirror of
https://github.com/DerTyp7/local-analyzer-python.git
synced 2025-10-29 12:32:10 +01:00
merged shops and amenities to places
This commit is contained in:
BIN
objects/__pycache__/amenities.cpython-310.pyc
Normal file
BIN
objects/__pycache__/amenities.cpython-310.pyc
Normal file
Binary file not shown.
BIN
objects/__pycache__/baseObjects.cpython-310.pyc
Normal file
BIN
objects/__pycache__/baseObjects.cpython-310.pyc
Normal file
Binary file not shown.
BIN
objects/__pycache__/metaObjects.cpython-310.pyc
Normal file
BIN
objects/__pycache__/metaObjects.cpython-310.pyc
Normal file
Binary file not shown.
52
objects/baseObjects.py
Normal file
52
objects/baseObjects.py
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
# TODO new objects: healthcare, police
|
||||
|
||||
# TODO Address object "addr:"
|
||||
# ? offices
|
||||
# ? How to handle districts
|
||||
|
||||
|
||||
class Place:
|
||||
def __init__(self, _nodeIds, _type, _name, _address = None, _contact = None, _openingHours = None):
|
||||
self.nodeIds = _nodeIds
|
||||
self.type = _type
|
||||
self.name = _name
|
||||
self.address = _address
|
||||
self.contact = _contact
|
||||
self.openingHours = _openingHours
|
||||
|
||||
class Node:
|
||||
def __init__(self, _id, _lon, _lat, _version, _timestamp, _changeset, _uid, _user):
|
||||
self.id = int(_id)
|
||||
self.lon = str(_lon)
|
||||
self.lat = str(_lat)
|
||||
self.version = str(_version)
|
||||
self.timestamp = str(_timestamp)
|
||||
self.changeset = int(_changeset)
|
||||
self.uid = int(_uid)
|
||||
self.user = str(_user)
|
||||
|
||||
|
||||
class NodeTag:
|
||||
def __init__(self, _id, _nodeId, _key, _value):
|
||||
self.id = int(_id)
|
||||
self.nodeId = int(_nodeId)
|
||||
self.key = str(_key)
|
||||
self.value = str(_value)
|
||||
|
||||
class Way:
|
||||
def __init__(self, _id, _version, _timestamp, _changeset, _uid, _user):
|
||||
self.id = int(_id)
|
||||
self.version = str(_version)
|
||||
self.timestamp = str(_timestamp)
|
||||
self.changeset = int(_changeset)
|
||||
self.uid = int(_uid)
|
||||
self.user = str(_user)
|
||||
|
||||
|
||||
class WayTag:
|
||||
def __init__(self, _id, _wayId, _key, _value):
|
||||
self.id = int(_id)
|
||||
self.wayId = int(_wayId)
|
||||
self.key = str(_key)
|
||||
self.value = str(_value)
|
||||
44
objects/metaObjects.py
Normal file
44
objects/metaObjects.py
Normal file
@@ -0,0 +1,44 @@
|
||||
class Contact:
|
||||
def __init__(self, _phone = None, _fax = None, _email = None, _website = None, _mobile = None):
|
||||
self.phone = _phone
|
||||
self.fax = _fax
|
||||
self.email = _email
|
||||
self.website = _website
|
||||
self.mobile = _mobile
|
||||
#Social
|
||||
self.facebook = None
|
||||
self.vk = None
|
||||
self.instagram = None
|
||||
self.twitter = None
|
||||
self.youtube = None
|
||||
self.ok = None
|
||||
self.webcam = None
|
||||
self.telegram = None
|
||||
self.whatsapp = None
|
||||
self.linkedin = None
|
||||
self.pinterest = None
|
||||
self.viper = None
|
||||
self.foursquare = None
|
||||
self.skype = None
|
||||
self.xing = None
|
||||
self.vhf = None
|
||||
self.flickr = None
|
||||
self.mastodon = None
|
||||
self.sip = None
|
||||
self.diaspora = None
|
||||
self.gnusocial = None
|
||||
# TODO support custom social tags MAYBE: there should ne no need
|
||||
|
||||
|
||||
class Address:
|
||||
def __init__(self, _housenumber = None, _street = None, _place = None,
|
||||
_city = None, _postcode = None, _country = None, _suburb = None, _state = None, _province = None):
|
||||
self.housenumber = _housenumber
|
||||
self.street = _street
|
||||
self.place = _place
|
||||
self.city = _city
|
||||
self.postcode = _postcode
|
||||
self.country = _country
|
||||
self.suburb = _suburb
|
||||
self.state = _state
|
||||
self.province = _province
|
||||
Reference in New Issue
Block a user