PokeGOAPI-Java icon indicating copy to clipboard operation
PokeGOAPI-Java copied to clipboard

Wild Pokemons

Open dtunctuncer opened this issue 10 years ago • 6 comments

I can get neaby gyms and pokestops but there is a issue with wild pokemons do you guys aware of that ?

dtunctuncer avatar Jul 20 '16 07:07 dtunctuncer

can you expand a bit more.

Grover-c13 avatar Jul 20 '16 07:07 Grover-c13

getMapObjects method returns neaby map objects, There isn't any error with gyms and pokestop I successfuly get them but when it comes to neaby pokemons around given location api return arraylist size zero. I haven't got any pokemon data so far. Sorry for my bad english I hope I explained myself correctly.

ps i have the lastest master relaese

dtunctuncer avatar Jul 20 '16 07:07 dtunctuncer

Can you show us what your getMapObjects() call looks like?

shpen avatar Jul 20 '16 07:07 shpen

PokemonGo go = new PokemonGo(auth,http); go.setLocation(41.0742066,29.00472,0); PlayerProfile profile = go.getPlayerProfile(); Toast.makeText(this, profile.getUsername(), Toast.LENGTH_SHORT).show();

        Map map = go.getMap();
        MapObjects mapObjects = map.getMapObjects();

dtunctuncer avatar Jul 20 '16 07:07 dtunctuncer

Looks fine to me. Try getting map objects at a different location. Maybe there just aren't any pokemon nearby?

shpen avatar Jul 20 '16 07:07 shpen

I just tested and WildPokemon is working in the latest commit. WildPokemon are the actual catachable pokemon, where Nearby Pokemon are all the pokemon in the area.

Grover-c13 avatar Jul 20 '16 07:07 Grover-c13