(lat, lng)
| 164 | |
| 165 | @app.route('/scan/<lat>/<lng>') |
| 166 | def api_scan(lat, lng): |
| 167 | location = (float(lat), float(lng)) |
| 168 | cells = [] |
| 169 | # for i in range(randint(60,70)): |
| 170 | for i in range(3): |
| 171 | cells.append({ |
| 172 | 'current_timestamp_ms': int(time() * 1000), |
| 173 | 'forts': getForts(location), |
| 174 | 's2_cell_id': uuid4(), # wrong, but also unused so it doesn't matter |
| 175 | 'wild_pokemons': makeWildPokemon(location), |
| 176 | 'catchable_pokemons': [], # unused |
| 177 | 'nearby_pokemons': [] # unused |
| 178 | }) |
| 179 | return jsonify({'responses': {'GET_MAP_OBJECTS': {'map_cells': cells}}}) |
| 180 | |
| 181 | if __name__ == '__main__': |
| 182 | app.run(threaded=True, debug=args.debug, host=args.host, port=args.port) |
nothing calls this directly
no test coverage detected