We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d5e9d8 commit bb0b14eCopy full SHA for bb0b14e
1 file changed
v3/opt_togetherjs/server.js
@@ -191,11 +191,14 @@ var server = http.createServer(function(request, response) {
191
192
// add a COPY of the entire query object verbatim to the queue:
193
var obj = Object.assign({}, url.query); // COPY!
194
- // add optional country and city info:
+ // add optional geographic info:
195
obj.ip = logObj.ip;
196
if (geoResult) {
197
obj.country = geoResult.country_name;
198
obj.city = geoResult.city;
199
+ obj.region = geoResult.region_name;
200
+ obj.latitude = geoResult.latitude;
201
+ obj.longitude = geoResult.longitude;
202
}
203
204
// log the geo-enhanced obj
0 commit comments