Closed GcodeS closed 7 years ago
You might also create an issue in the s2-geometry repository to add this functionality to their API.
@andnp it isn't their fault. Pokemon Go is now returning every distance null, so toString() cannot work properly.
incase it starts working again ive just changed my code to:
console.log(pokemon.name + ' spotted ' + ( hb.cells[i].NearbyPokemon[n].DistanceMeters ? hb.cells[i].NearbyPokemon[n].DistanceMeters.toString()+' meters away' : 'nearby' ));
which would output Zubat spotted nearby
if DistanceMeters==null
+1
NearbyPokemon[0].DistanceMeters.toString() is now returning to null. It breaks the code.