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

SpawnPoints not work

Open ivoavido opened this issue 10 years ago • 4 comments

Description:

GetSpawnPoints() method return always an empty list

ivoavido avatar Aug 01 '16 20:08 ivoavido

can you give me the lat long of the problem area so i can check to see if there are spawn points in range?

Grover-c13 avatar Aug 02 '16 13:08 Grover-c13

double lat = 48.847533008980086; double lng = 2.3301315307617188;

there are from middle of paris

FabianTerhorst avatar Aug 02 '16 13:08 FabianTerhorst

That's the execution code:


double lat = 39.367369; double lng = 16.225263; double alt = 1; int range = 9;

OkHttpClient httpClient = new OkHttpClient(); PokemonGo go = new PokemonGo(new PtcCredentialProvider(httpClient,username,password),httpClient); go.setLocation(lat, lng, alt); List cells = go.getMap().getCellIds(lat, lng, range); MapObjects mapObjects = go.getMap().getMapObjects(cells); mapObjects.getSpawnPoints(); // Always empty collection


Thanks.

ivoavido avatar Aug 02 '16 14:08 ivoavido

You should verify that you arent asking to fast (there is a limit for GetMapObjects requests now) and check #486 too. Shouldnt come from the api itself, people used it without problem so.

vmarchaud avatar Aug 06 '16 10:08 vmarchaud