This makes use of the previously ignored min and max location arguments.
It does a one time haversine comparison between the two points sent in the API request to ensure the distance is shorter than the new config value tuning.max_pokemon_distance.
After the check, it uses the Pythagorean theorem to calculate the box-dist between the two points for comparison with the Pokemon's distance from the center point.
This makes use of the previously ignored
min
andmax
location arguments.It does a one time haversine comparison between the two points sent in the API request to ensure the distance is shorter than the new config value
tuning.max_pokemon_distance
.After the check, it uses the Pythagorean theorem to calculate the box-dist between the two points for comparison with the Pokemon's distance from the center point.