hub/city_model_structure/subway_entrance.py

45 lines
951 B
Python
Raw Normal View History

2020-11-26 09:26:55 -05:00
"""
Subway entrance module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
2020-06-30 18:06:27 -04:00
from city_model_structure.city_object import CityObject
class SubwayEntrance(CityObject):
2020-11-26 09:26:55 -05:00
"""
SubwayEntrance(CityObject) class
"""
2020-06-30 18:06:27 -04:00
def __init__(self, name, latitude, longitude):
super().__init__(0, [], name, [])
2020-06-30 18:06:27 -04:00
self._name = name
self._latitude = latitude
self._longitude = longitude
self._type = 'subway_entrance'
2020-06-30 18:06:27 -04:00
@property
def latitude(self):
2020-11-26 09:26:55 -05:00
# todo: to be defined the spacial point and the units
"""
Get latitude
:return: float
"""
2020-06-30 18:06:27 -04:00
return self._latitude
@property
def longitude(self):
2020-11-26 09:26:55 -05:00
# todo: to be defined the spacial point and the units
"""
Get longitude
:return: float
"""
2020-06-30 18:06:27 -04:00
return self._longitude
@property
def name(self):
2020-11-26 09:26:55 -05:00
"""
Get name
:return: string
"""
2020-06-30 18:06:27 -04:00
return self._name