From 80a5d77054757523a35898ddb14d97d99ac4a94e Mon Sep 17 00:00:00 2001 From: ishotjr Date: Thu, 28 Jul 2016 00:13:30 -0400 Subject: [PATCH] :no_entry_sign: :dancers: Update duplicate filter to use Id/Latitude/Longitude --- src/js/app.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/js/app.js b/src/js/app.js index da2c797..962e449 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -99,6 +99,8 @@ function getPokemon() { //(latitude, longitude) { "i": i, "pokemonId": pokemonId, "pokemonExpirationTime": pokemonExpirationTime, + "pokemonLatitude": pokemonLatitude, + "pokemonLongitude": pokemonLongitude, "pokemonDistance": pokemonDistance, "pokemonBearing": pokemonBearing, "pokemonUID": pokemonUID @@ -117,8 +119,16 @@ function getPokemon() { //(latitude, longitude) { //get rid of duplicates that have the same UID for( var i=0; i