-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.rb
85 lines (73 loc) · 1.77 KB
/
config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
require 'koala'
module LocationFetchService
DATABASE_HOST = ENV['RACK_ENV'] == 'production' ? 'services.bjjmapper.com' : 'localhost'
DATABASE_PORT = 27017
DATABASE_APP_DB = 'location_fetch_service'
DATABASE_URI = "mongodb://#{DATABASE_HOST}:#{DATABASE_PORT}/#{DATABASE_APP_DB}"
BJJMAPPER_HOST = 'localhost'
BJJMAPPER_PORT = 80
BJJMAPPER_CLIENT_SETTINGS = {
host: BJJMAPPER_HOST,
port: BJJMAPPER_PORT,
api_key: ENV['BJJMAPPER_API_KEY']
}.freeze
AVATAR_SERVICE_HOST = 'localhost'
AVATAR_SERVICE_PORT = '80'
QUEUE_NAME = 'locations'
IMPORT_QUEUE_NAME = 'locations_import'
GOOGLE_PLACES_API_KEY = ENV['GOOGLE_PLACES_API_KEY']
GOOGLE_GEOCODER_API_KEY = ENV['GOOGLE_GEOCODER_API_KEY']
YELP_API_KEY = {
consumer_key: ENV['YELP_API_CONSUMER_KEY'],
consumer_secret: ENV['YELP_API_CONSUMER_SECRET'],
token: ENV['YELP_API_TOKEN'],
token_secret: ENV['YELP_API_TOKEN_SECRET']
}.freeze
APP_API_KEY = "d72d574f-a395-419e-879c-2b2d39a51ffc"
TITLE_BLACKLIST_WORDS = [
'ilovekickboxing',
'bodyshaping',
'family',
'ata',
'wingchun',
'chun',
'kung',
'kung-fu',
'kungfu',
'capoeira',
'karate',
'tae',
'kwondo',
'tae-kwondo',
'taekwondo',
'kwon',
'krav',
'maga',
'cultural',
'aikido',
'ai-kido',
'kido',
'cosmetic',
'beauty',
'surgical',
'nails',
'barber',
'ambulance'
].freeze
TITLE_WHITELIST_WORDS = [
'brazilian',
'jiu-jitsu',
'jitsu',
'mma',
'judo',
'gracie',
'bjj',
'submission',
'grappling'
].freeze
LISTING_DISTANCE_THRESHOLD_MI = 0.4
FOURSQUARE_FORMAT = 'foursquare'
FOURSQUARE_API_VERSION = '20170506' # Today 2017-05-06
FOURSQUARE_INTENT = 'browse'
Koala.config.api_version = "v2.8"
end