forked from HackEmergency/hack-emergency
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_search_api
144 lines (133 loc) · 2.44 KB
/
example_search_api
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
search_parameters
{
"geobox":[
[0.0, 0.0],
[10, 10],
[0, 10],
[10, 0],
]
"from": 1st Jan 2015,
"to": 30th Jan 2015,
}
q?geobox=%5B0.0%2C+0.0%5D&geobox=%5B10%2C+10%5D&geobox=%5B0%2C+10%5D&geobox=%5B10%2C+0%5D&to=2015-01-30T00%3A00%3A00&from=2015-01-01T00%3A00%3A00
{
"central_point": [0,0],
"within":10000,
"from": 1st Jan 2015,
"to": 30th Jan 2015,
}
twitter_info = [
{
"username": "gemma"
"text": "enjoying a matcha late".
"location":"timberland",
"time":"13:00"
},
{
"username": "ada"
"text": "enjoying a late".
"location":"timberland"
"time":"time":"13:00"
},
{
"username": "rainey",
"text": "just arrived",
"location": "timberland",
"time":"13:00"
},
{
"username": "gemma",
"text": "catching my breath after escaping the fire",
"location": "seven dials",
"time": "13:50"
},
{
"username": "gemma"
"text": "escaped the fire".
"location":"starbucks",
"time":"14:00"
},
{
"username": "ada"
"text": "escaped the fire".
"location":"starbucks"
"time":"time":"14:00"
},
{
"username": "rainey"
"text": "escaped the fire".
"location":"costa",
"time":"14:00"
},
]
groups = [
{
"unique_identifier":"gemma"
"group_size": 1,
movements: [
{
"timestamp":"13:00",
"location":"timberland"
},
{
"timestamp":"13:50",
"location":"seven dials"
},
{
"timestamp":"14:00",
"location":"starbucks"
}
]
}
]
movements = [
{
"unique_identifier":"gemma"
"group_size": 1,
"start_coordinates": "Brighton"
"end_coordinates": "Timberyard"
"start_date": 13:00,
"end_date": 14:00,
},
{
"unique_identifier":"ada",
"group_size": 1,
"start_coordinates": "High Widcombe"
"end_coordinates": "Timberyard"
"start_date": 13:00,
"end_date": 14:00,
},
{
"unique_identifier":"gemma+ada"
"group_size": 2,
"child_group_ids":["gemma", "ada"]
"start_coordinates": "Timberland"
"end_coordinates": "Starbucks"
"start_date": 13:00,
"end_date": 14:00,
},
{
"unique_identifier":"gemma"
"group_size": 1,
"start_coordinates": "Starbucks"
"end_coordinates": "Brighton"
"start_date": 13:00,
"end_date": 14:00,
},
{
"unique_identifier":"ada",
"group_size": 1,
"start_coordinates": "Starbucks"
"end_coordinates": "High Widcombe"
"start_date": 13:00,
"end_date": 14:00,
},
{
"unique_identifier":"rainey",
"group_size": 1,
"start_coordinates": "Timberland"
"end_coordinates": "Costa"
"start_date": 13:00,
"end_date": 14:00,
}
]