-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js
65 lines (65 loc) · 1.58 KB
/
settings.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
/**
* Created by christopherfricke on 3/28/15.
*/
exports.settings = {
database: {
username: process.env.username || 'dev',
password: process.env.password || 'devP@a$$word',
hostname: process.env.hostname || 'localhost',
database: process.env.database || 'routing'
},
routing: {
restrictions: {
isPublic: 'Publicly Accessible',
isActive: 'Active',
isEmergency: 'Emergency Accessibility'
}
},
tables: {
ways: {
name: 'routing.way',
fields: [{
name: 'objectid',
type: 'int'
},{
name: 'shape',
type: 'line'
}]
},
ways_vertices_pgr: {
name: 'routing.way_vertices_pgr',
fields: [{
name: 'id',
type: 'int'
},{
name: 'the_geom',
type: 'point'
}]
},
waypoint: {
name: 'routing.waypoint',
srid: 4326,
fields: [{
name: 'objectid',
type: 'int'
},{
name: 'shape',
type: 'point'
}]
},
poi: {
name: 'routing.waypoint',
srid: 4326,
fields: [{
name: 'objectid',
type: 'int'
},{
name: 'shape',
type: 'point'
},{
name: 'name',
type: 'string'
}]
}
}
};