forked from cbmsc-diti/mogi-server
-
Notifications
You must be signed in to change notification settings - Fork 3
/
fillgroupPositions.js
58 lines (51 loc) · 1.33 KB
/
fillgroupPositions.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
var express = require('express'),
app = module.exports = express(),
db = require('./lib/db'),
auth = require('./lib/auth');
db.group.find({ where: {name: 'Instituto Igarapé'} }).then(function(group) {
group.lat = -22.909639
group.lng = -43.205776
group.save();
})
db.group.find({ where: {name: 'Cape Town'} }).then(function(group) {
if(group){
group.lat = -33.920684
group.lng = 18.425690
group.save();
}
})
db.group.find({ where: {name: 'Google'} }).then(function(group) {
if(group){
group.lat = 40.741059
group.lng = -74.003081
group.save();
}
})
db.group.find({ where: {name: 'Nairobi'} }).then(function(group) {
if(group){
group.lat = -1.292151
group.lng = 36.821967
group.save();
}
})
db.group.find({ where: {name: 'Rocinha'} }).then(function(group) {
if(group){
group.lat = -22.988561
group.lng = -43.246453
group.save();
}
})
db.group.find({ where: {name: 'UPP Santa Marta'} }).then(function(group) {
if(group){
group.lat = -22.948079
group.lng = -43.193626
group.save();
}
})
db.group.find({ where: {name: 'UPP São Carlos'} }).then(function(group) {
if(group){
group.lat = -22.917558
group.lng = -43.199483
group.save();
}
})