Class Geo

Description

Provides different methods to query geo based information.

Located in /src/Geo.php (line 9)


	
			
Method Summary
static PaginatedResult getEvents ([string $location = null], [float $lat = null], [float $long = null], [integer $distance = null], [integer $page = null])
static array getTopArtists (string $country)
static array getTopTracks (string $country, [string $location = null])
Methods
static method getEvents (line 23)

Get all events in a specific location by country or city name.

  • return: A PaginatedResult object.
  • throws: Error
  • access: public
static PaginatedResult getEvents ([string $location = null], [float $lat = null], [float $long = null], [integer $distance = null], [integer $page = null])
  • string $location: Specifies a location to retrieve events for (service returns nearby events by default). (Optional)
  • float $lat: Specifies a latitude value to retrieve events for (service returns nearby events by default). (Optional)
  • float $long: Specifies a longitude value to retrieve events for (service returns nearby events by default). (Optional)
  • integer $distance: Find events within a specified distance. (Optional)
  • integer $page: Display more results by pagination. (Optional)
static method getTopArtists (line 60)

Get the most popular artists on last.fm by country.

  • return: An array of Artist objects.
  • throws: Error
  • access: public
static array getTopArtists (string $country)
  • string $country: country A country name, as defined by the ISO 3166-1 country names standard. (Required)
static method getTopTracks (line 84)

Get the most popular tracks on last.fm by country.

  • return: An array of Track objects.
  • throws: Error
  • access: public
static array getTopTracks (string $country, [string $location = null])
  • string $country: country A country name, as defined by the ISO 3166-1 country names standard. (Required)
  • string $location: location A metro name, to fetch the charts for (must be within the country specified). (Optional)

Documentation generated on Mon, 22 Dec 2008 16:57:37 +0100 by phpDocumentor 1.4.1