Package de.umass.lastfm
Class Venue
java.lang.Object
de.umass.lastfm.ImageHolder
de.umass.lastfm.Venue
Venue information bean.
- Author:
- Janni Kovacs
-
Field Summary
Fields inherited from class de.umass.lastfm.ImageHolder
imageUrls
-
Method Summary
Modifier and TypeMethodDescriptiongetCity()
static Collection<Event>
Get a list of upcoming events at this venue.getId()
float
float
getName()
static PaginatedResult<Event>
getPastEvents
(String venueId, int page, String apiKey) Get a paginated list of all the events held at this venue in the past.static PaginatedResult<Event>
getPastEvents
(String venueId, String apiKey) Get a paginated list of all the events held at this venue in the past.getUrl()
Returns a last.fm URL to this venue, e.g.: http://www.last.fm/venue/<id>-<venue name>Returns an URL to the actual venue's website.static Collection<Venue>
Search for a venue by venue name.static Collection<Venue>
Search for a venue by venue name.Methods inherited from class de.umass.lastfm.ImageHolder
availableSizes, getImageURL, loadImages
-
Method Details
-
getId
-
getUrl
Returns a last.fm URL to this venue, e.g.: http://www.last.fm/venue/<id>-<venue name>- Returns:
- last.fm url
- See Also:
-
getWebsite
Returns an URL to the actual venue's website.- Returns:
- website url
-
getCity
-
getCountry
-
getLatitude
public float getLatitude() -
getLongitude
public float getLongitude() -
getName
-
getPostal
-
getStreet
-
getTimezone
-
getPhonenumber
-
search
Search for a venue by venue name.- Parameters:
venue
- The venue name you would like to search forapiKey
- A Last.fm API key- Returns:
- a list of venues
-
search
Search for a venue by venue name.- Parameters:
venue
- The venue name you would like to search forcountry
- Filter your results by country. Expressed as an ISO 3166-2 codeapiKey
- A Last.fm API key- Returns:
- a list of venues
-
getEvents
Get a list of upcoming events at this venue.- Parameters:
venueId
- The venue id to fetch the events forapiKey
- A Last.fm API key- Returns:
- a list of events
- See Also:
-
getPastEvents
Get a paginated list of all the events held at this venue in the past.- Parameters:
venueId
- The id for the venue you would like to fetch event listings forapiKey
- A Last.fm API key- Returns:
- a paginated list of events
-
getPastEvents
Get a paginated list of all the events held at this venue in the past.- Parameters:
venueId
- The id for the venue you would like to fetch event listings forpage
- The page of results to returnapiKey
- A Last.fm API key- Returns:
- a paginated list of events
-