RocketMap icon indicating copy to clipboard operation
RocketMap copied to clipboard

Why does `/raw_data` show less Pokémons than the map and `/stats`?

Open joaodragao opened this issue 10 years ago • 4 comments

Why does /raw_data show less Pokémons than the map and /stats? How to get all the Pokémons as shown on the map?

joaodragao avatar Aug 09 '16 13:08 joaodragao

maybe you can connect to the db directly?

slideup-benni avatar Aug 09 '16 14:08 slideup-benni

Can you guide me? Currently, I'm check the JS files.

joaodragao avatar Aug 09 '16 14:08 joaodragao

@joaodragao You can set flags for displaying info with the raw_data post.

For example http://localhost/raw_data?gyms=false&pokemon=false&scanned=false&seen=true&duration=1h

Gives back all list of all pokemon that have showed their faces in the last hour.

{
  "seen": {
    "pokemon": [
      {
        "count": 2, 
        "disappear_time": 1470759390000, 
        "latitude": 1.00000000, 
        "longitude": -1.00000000, 
        "pokemon_id": 1, 
        "pokemon_name": "Bulbasaur"
      },
      ...
      {
        "count": 4, 
        "disappear_time": 1470759250000, 
        "latitude": 1.00000000, 
        "longitude": -1.00000000, 
        "pokemon_id": 140, 
        "pokemon_name": "Kabuto"
      }
    ], 
    "total": 7584
  }
}

Take a look at https://github.com/PokemonGoMap/PokemonGo-Map/blob/develop/pogom/app.py#L78-L111 for all those specific strings.

And also https://github.com/PokemonGoMap/PokemonGo-Map/blob/develop/pogom/app.py#L27-L35 for the other features.

GenuineSounds avatar Aug 09 '16 16:08 GenuineSounds

@GenuineSounds: Thanks! This is what I want :)

joaodragao avatar Aug 09 '16 20:08 joaodragao