-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtopics.js
80 lines (80 loc) · 2.86 KB
/
topics.js
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
module.exports = {
'dog-walking-zones': {
searchTerm: '+title:"dog walking" OR +title:"dog off"',
titleWhitelist: /dog/i,
titleBlacklist: /bag/i
},
'garbage-collection-zones': {
// note: this is the correct syntax for searching two alternative phrases. Everything else is wrong.
// TODO: Allow an array of strings, and just run several queries.
searchTerm: '+title:"garbage collection" OR +title:"waste collection"',
titleBlacklist: /bins|stats|trucks|routes|points/i,
titleWhitelist: /waste|garbage|recycling|rubbish/i
},
'public-toilets': {
searchTerm: 'public-toilets',
//titleBlacklist: /bins|stats|trucks|routes/i,
titleWhitelist: /toilet|amenities/i
},
'parking-zones': {
searchTerm: 'parking',
titleBlacklist: /parks|infringement|machine|dog/i,
titleWhitelist: /parking/i
},
'footpaths': {
searchTerm: 'footpaths',
titleBlacklist: /defect/i,
titleWhitelist: /path/i
},
'customer-service-centres': {
searchTerm: 'customer service centres',
titleWhitelist: /customer service/i
//titleBlacklist: /
},
'drainpipes': {
searchTerm: '+title:"drains" OR +title:"drainpipes" OR +title:"stormwater" OR +title:"drainage"',
titleWhitelist: /drain|stormwater|pipe/i,
titleBlacklist: /basin|pit|catchment|overlay|node|connection|areas|future|planning|points/i
},
'parks': {
searchTerm: '+title:parks OR +title:"open space"',
titleWhitelist: /park|open space/i,
titleBlacklist: /parking|carpark|trees|shelters|playground|dog|caravan|track/i
},
'trees': {
searchTerm: 'trees',
titleWhitelist: /trees/i,
titleBlacklist: /species|flora|catalogue|pit/i
},
'facilities': {
searchTerm: '+title:"facilities" OR "libraries" OR +"community centres"',
titleBlacklist: /parks|proposed/i,
titleWhitelist: /facilities|librar|community centre/i
},
'childcare-centres': {
searchTerm: '+title:"childcare" OR +title:"child care" OR +title:"kindergarten"',
titleWhitelist: /child.?care|kindergarten/i
},
'venues-for-hire': {
searchTerm: '+title:venues OR +title:halls',
titleWhitelist:/venue|hall/i
},
'wards': {
searchTerm: 'wards',
titleWhitelist: /wards/i,
titleBlacklist: /register|bridges|councillors/i
},
'road-closures': {
searchTerm: 'road closures',
titleWhitelist: /road closure/i
},
'property-boundaries': {
searchTerm: 'property boundaries',
titleWhitelist: /propert|cadastr/i
},
'street-furniture': {
searchTerm: '+title:"furniture" OR +title:"bbq"',
//titleBlacklist: /bins|stats|trucks|routes|points/i,
titleWhitelist: /furniture|bbq/i
}
};