Closed rutgerrrrr closed 8 years ago
They are missing indeed. The main reason for this is that the API is far from finished and I add features from time to time.
To expand on the readme, just as an example:
$map = $session->getMapObjects(); // Obtain map objects near the current location
$gyms = $map->getGyms(); // Array of gyms
$pokestops = $map->getPokestops(); // Array of pokestops
$pokemons = $map->getWildPokemons(); // Array of wild pokemons
// Gyms and pokestops have information like name/description/image:
$gym = reset($gyms);
$gymName = $gym->getName();
// Beware that this involves sending an extra request to the server
Hi, am I just overlooking something obvious or are the examples missing?