2020-11-26 09:26:55 -05:00
|
|
|
"""
|
|
|
|
Subway entrance module
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
2022-04-08 09:35:33 -04:00
|
|
|
Copyright © 2022 Concordia CERC group
|
|
|
|
Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
2020-11-26 09:26:55 -05:00
|
|
|
"""
|
2023-01-24 10:51:50 -05:00
|
|
|
from hub.city_model_structure.city_object import CityObject
|
2020-06-30 18:06:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
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):
|
2023-01-26 07:41:56 -05:00
|
|
|
super().__init__(name, 0)
|
2020-06-30 18:06:27 -04:00
|
|
|
self._name = name
|
|
|
|
self._latitude = latitude
|
|
|
|
self._longitude = longitude
|
2021-04-01 10:36:07 -04:00
|
|
|
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
|
2021-08-30 14:39:24 -04:00
|
|
|
:return: str
|
2020-11-26 09:26:55 -05:00
|
|
|
"""
|
2020-06-30 18:06:27 -04:00
|
|
|
return self._name
|