2017-11-27 15:05:13 +01:00
|
|
|
# coding: utf-8
|
|
|
|
"""
|
|
|
|
Constants used across the app.
|
|
|
|
"""
|
|
|
|
from __future__ import absolute_import, print_function, unicode_literals
|
|
|
|
|
2018-09-07 19:28:15 +02:00
|
|
|
from enum import Enum
|
|
|
|
|
2017-11-27 15:05:13 +01:00
|
|
|
# Some backends give more infos than others. Here is the precedence we want to
|
|
|
|
# use. First is most important one, last is the one that will always be
|
|
|
|
# considered as less trustable if two backends have similar info about a
|
|
|
|
# housing.
|
|
|
|
BACKENDS_BY_PRECEDENCE = [
|
|
|
|
"foncia",
|
2021-04-09 20:15:02 +02:00
|
|
|
"seloger",
|
2017-11-27 15:05:13 +01:00
|
|
|
"pap",
|
|
|
|
"leboncoin",
|
|
|
|
"explorimmo",
|
2021-01-26 14:39:52 +01:00
|
|
|
"logicimmo",
|
2017-11-27 15:05:13 +01:00
|
|
|
]
|
2018-09-07 19:28:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
class TimeToModes(Enum):
|
|
|
|
PUBLIC_TRANSPORT = -1
|
|
|
|
WALK = 1
|
|
|
|
BIKE = 2
|
|
|
|
CAR = 3
|