forked from s_ranjbar/city_retrofit
45 lines
951 B
Python
45 lines
951 B
Python
"""
|
|
Subway entrance module
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
|
|
"""
|
|
from city_model_structure.city_object import CityObject
|
|
|
|
|
|
class SubwayEntrance(CityObject):
|
|
"""
|
|
SubwayEntrance(CityObject) class
|
|
"""
|
|
def __init__(self, name, latitude, longitude):
|
|
super().__init__(0, [], name, [])
|
|
self._name = name
|
|
self._latitude = latitude
|
|
self._longitude = longitude
|
|
self._type = 'subway_entrance'
|
|
|
|
@property
|
|
def latitude(self):
|
|
# todo: to be defined the spacial point and the units
|
|
"""
|
|
Get latitude
|
|
:return: float
|
|
"""
|
|
return self._latitude
|
|
|
|
@property
|
|
def longitude(self):
|
|
# todo: to be defined the spacial point and the units
|
|
"""
|
|
Get longitude
|
|
:return: float
|
|
"""
|
|
return self._longitude
|
|
|
|
@property
|
|
def name(self):
|
|
"""
|
|
Get name
|
|
:return: string
|
|
"""
|
|
return self._name
|