RocketBot icon indicating copy to clipboard operation
RocketBot copied to clipboard

Suggestion: Randomize Query Location

Open MitsuSan opened this issue 10 years ago • 1 comments

Probably not good if positions are exact pokestops and others...

    private void SetCoordinates(double lat, double lng)
    {
        Random rnd = new Random();
        const double rndRange = 0.00002;
        _currentLat = lat + Math.Round((rnd.NextDouble() - 0.5) * rndRange, 6);
        _currentLng = lng + Math.Round((rnd.NextDouble() - 0.5) * rndRange, 6);
        //            _settings.DefaultLatitude = lat;
        //            _settings.DefaultLongitude = lng;
    }

MitsuSan avatar Aug 02 '16 14:08 MitsuSan

I like it!

BillOatman avatar Aug 02 '16 16:08 BillOatman