-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb-config.js
37 lines (36 loc) · 1.21 KB
/
db-config.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
var pgp = require('pg-promise')();
var conString = "postgres://postgres@localhost:5432/pdt-gis";
var db = pgp(conString);
module.exports = {
pgp: pgp,
db: db,
types: [
{
text: 'Uni',
contains: ['Higher Education Institutions']
},
{
text: 'Free school',
contains: ['Free Schools Special','Free Schools - 16-19',
'Free Schools','Free Schools - Alternative Provision',
'Studio Schools', 'University Technical College']
},
{
text: 'Academy',
contains: ['Academy 16-19 Converter','Academy 16-19 Sponsor Led',
'Academy Alternative Provision Converter','Academy Alternative Provision Sponsor Led',
'Academy Converter', 'Academy Special Converter',
'Academy Special Sponsor Led', 'Academy Sponsor Led']
},
{
text: 'College',
contains: ['Further Education', 'Sixth Form Centres']
}
],
phases: ['Primary', 'Secondary', 'Nursery'],
areaDistance: 5000,
crimeDistance: 1000,
pageLimit: 15,
undesiredPlacesDistance: 1000,
undesiredPlaces: ['bar', 'pub', 'casino', 'gambling']
};