Source for file Geo.php
Documentation is available at Geo.php
/** Provides different methods to query geo based information.
* @package php-lastfm-api
* @author Felix Bruns <felixbruns@web.de>
/** Get all events in a specific location by country or city name.
* @param string $location Specifies a location to retrieve events for (service returns nearby events by default). (Optional)
* @param float $lat Specifies a latitude value to retrieve events for (service returns nearby events by default). (Optional)
* @param float $long Specifies a longitude value to retrieve events for (service returns nearby events by default). (Optional)
* @param integer $distance Find events within a specified distance. (Optional)
* @param integer $page Display more results by pagination. (Optional)
* @return PaginatedResult A PaginatedResult object.
public static function getEvents($location =
null, $lat =
null, $long =
null,
$distance =
null, $page =
null){
foreach($xml->children() as $event){
/** Get the most popular artists on last.fm by country.
* @param string country A country name, as defined by the ISO 3166-1 country names standard. (Required)
* @return array An array of Artist objects.
foreach($xml->children() as $artist){
/** Get the most popular tracks on last.fm by country.
* @param string country A country name, as defined by the ISO 3166-1 country names standard. (Required)
* @param string location A metro name, to fetch the charts for (must be within the country specified). (Optional)
* @return array An array of Track objects.
public static function getTopTracks($country, $location =
null){
foreach($xml->children() as $track){
Documentation generated on Mon, 22 Dec 2008 16:57:37 +0100 by phpDocumentor 1.4.1