Fix API now using track

This commit is contained in:
vjrj 2018-09-15 10:27:03 +02:00
parent 3ea653552e
commit df47bef794
5 changed files with 13 additions and 4 deletions

View file

@ -32,7 +32,9 @@ const findFiresInRegion = (zone) => {
export const countRealFires = (firesCursor) => {
const realFires = [];
firesCursor.forEach((fire) => {
if (debug) console.log(`${JSON.stringify(fire)} -----`);
const union = firesUnion([fire]);
if (debug) console.log(`${JSON.stringify(union)} -----`);
const falsePos = whichAreFalsePositives(FalsePositives, union);
const industries = whichAreFalsePositives(Industries, union);
if (falsePos.count() === 0 && industries.count() === 0) {