forked from s_ranjbar/city_retrofit
Changed hard-coded values to constant values
This commit is contained in:
parent
1657808b77
commit
3babe097f2
|
@ -33,28 +33,26 @@ class SchedulesHelper:
|
||||||
|
|
||||||
# usage
|
# usage
|
||||||
function_to_usage = {
|
function_to_usage = {
|
||||||
'full service restaurant': 'restaurant',
|
'full service restaurant': cte.RESTAURANT,
|
||||||
'high-rise apartment': cte.RESIDENTIAL,
|
'high-rise apartment': cte.RESIDENTIAL,
|
||||||
'hospital': 'health care',
|
'hospital': cte.HEALTH_CARE,
|
||||||
'large hotel': 'hotel',
|
'large hotel': cte.HOTEL,
|
||||||
'large office': 'office and administration',
|
'large office': cte.OFFICE_ADMINISTRATION,
|
||||||
'medium office': 'office and administration',
|
'medium office': cte.OFFICE_ADMINISTRATION,
|
||||||
'midrise apartment': cte.RESIDENTIAL,
|
'midrise apartment': cte.RESIDENTIAL,
|
||||||
'outpatient healthcare': 'health care',
|
'outpatient healthcare': cte.HEALTH_CARE,
|
||||||
'primary school': 'education',
|
'primary school': cte.EDUCATION,
|
||||||
'quick service restaurant': 'restaurant',
|
'quick service restaurant': cte.RESTAURANT,
|
||||||
'secondary school': 'education',
|
'secondary school': cte.EDUCATION,
|
||||||
'small hotel': 'hotel',
|
'small hotel': cte.HOTEL,
|
||||||
'small office': 'office and administration',
|
'small office': cte.OFFICE_ADMINISTRATION,
|
||||||
'stand-alone-retail': 'retail',
|
'stand-alone-retail': cte.RETAIL,
|
||||||
'strip mall': 'hall',
|
'strip mall': cte.HALL,
|
||||||
'supermarket': 'retail',
|
'supermarket': cte.RETAIL,
|
||||||
'warehouse': 'industry',
|
'warehouse': cte.INDUSTRY,
|
||||||
'residential': cte.RESIDENTIAL
|
'residential': cte.RESIDENTIAL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def comnet_from_usage(usage):
|
def comnet_from_usage(usage):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user