5andr0 / PogoLocationFeeder

Json feed of pokemon location data
GNU Affero General Public License v3.0
493 stars 168 forks source link

[REQUEST] Skiplagged #95

Open ghost opened 8 years ago

ghost commented 8 years ago

Is it possible to make it work with https://skiplagged.com/pokemon ?

Gurkengewuerz commented 8 years ago

I think they don't have a api.

ghost commented 8 years ago

http://skiplagged.com/api/pokemon.php?bounds=40.76356269219236,-73.98657795715332,40.7854671345488,-73.95812508392333

jinkawasaki333 commented 8 years ago

@BuggeDKarma How do you hook it up?

ghost commented 8 years ago

var offset = session.LogicSettings.SnipingScanOffset; // 0.003 = half a mile; maximum 0.06 is 10 miles if (offset < 0.001) offset = 0.003; if (offset > 0.06) offset = 0.06;

        var boundLowerLeftLat = location.Latitude - offset;
        var boundLowerLeftLng = location.Longitude - offset;
        var boundUpperRightLat = location.Latitude + offset;
        var boundUpperRightLng = location.Longitude + offset;

        var uri =
            $"http://skiplagged.com/api/pokemon.php?bounds={boundLowerLeftLat.ToString(formatter)},{boundLowerLeftLng.ToString(formatter)},{boundUpperRightLat.ToString(formatter)},{boundUpperRightLng.ToString(formatter)}";

That's from Necronomicon bot...

5andr0 commented 8 years ago

Yea, somebody up for this? Got no time to integrate that :/

ghost commented 8 years ago

That would be awesome <3

Ilses commented 8 years ago

Noticing this is implemented in NecroBot (see SnipeScanForPokemon in SnipePokemonTask.cs). We could probably do something similar.