|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.roarsoftware.lastfm.Geo
public class Geo
Provides nothing more than a namespace for the API methods starting with geo.
Method Summary | |
---|---|
static java.util.Collection<Event> |
getAllEvents(java.lang.String location,
java.lang.String distance,
java.lang.String apiKey)
Get all events in a specific location by country or city name. This method returns all events by subsequently calling getEvents(String, String, int, String)
and concatenating the single results into one list.Pay attention if you use this method as it may produce a lot of network traffic and therefore may consume a long time. |
static PaginatedResult<Event> |
getEvents(double latitude,
double longitude,
int page,
java.lang.String apiKey)
Get all events in a specific location by country or city name. This method only returns the specified page of a paginated result. |
static PaginatedResult<Event> |
getEvents(java.lang.String location,
java.lang.String distance,
int page,
java.lang.String apiKey)
Get all events in a specific location by country or city name. This method only returns the specified page of a paginated result. |
static PaginatedResult<Event> |
getEvents(java.lang.String location,
java.lang.String distance,
java.lang.String apiKey)
Get all events in a specific location by country or city name. This method only returns the first page of a possibly paginated result. |
static java.util.Collection<Artist> |
getTopArtists(java.lang.String country,
java.lang.String apiKey)
Get the most popular artists on Last.fm by country |
static java.util.Collection<Track> |
getTopTracks(java.lang.String country,
java.lang.String apiKey)
Get the most popular tracks on Last.fm by country |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Collection<Event> getAllEvents(java.lang.String location, java.lang.String distance, java.lang.String apiKey)
getEvents(String, String, int, String)
and concatenating the single results into one list.
location
- Specifies a location to retrieve events fordistance
- Find events within a specified distanceapiKey
- A Last.fm API key.
public static PaginatedResult<Event> getEvents(java.lang.String location, java.lang.String distance, java.lang.String apiKey)
PaginatedResult.getTotalPages()
and
subsequently call getEvents(String, String, int, String)
with the successive page numbers.
location
- Specifies a location to retrieve events fordistance
- Find events within a specified distanceapiKey
- A Last.fm API key.
PaginatedResult
containing a list of eventspublic static PaginatedResult<Event> getEvents(java.lang.String location, java.lang.String distance, int page, java.lang.String apiKey)
location
- Specifies a location to retrieve events fordistance
- Find events within a specified distancepage
- A page number for paginationapiKey
- A Last.fm API key.
PaginatedResult
containing a list of eventspublic static PaginatedResult<Event> getEvents(double latitude, double longitude, int page, java.lang.String apiKey)
latitude
- Latitudelongitude
- Longitudepage
- A page number for paginationapiKey
- A Last.fm API key.
PaginatedResult
containing a list of eventspublic static java.util.Collection<Artist> getTopArtists(java.lang.String country, java.lang.String apiKey)
country
- A country name, as defined by the ISO 3166-1 country names standardapiKey
- A Last.fm API key.
public static java.util.Collection<Track> getTopTracks(java.lang.String country, java.lang.String apiKey)
country
- A country name, as defined by the ISO 3166-1 country names standardapiKey
- A Last.fm API key.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |