public class Venue extends ImageHolder
imageUrls
Modifier and Type | Method and Description |
---|---|
String |
getCity() |
String |
getCountry() |
static Collection<Event> |
getEvents(String venueId,
String apiKey)
Get a list of upcoming events at this venue.
|
String |
getId() |
float |
getLatitude() |
float |
getLongitude() |
String |
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.
|
String |
getPhonenumber() |
String |
getPostal() |
String |
getStreet() |
String |
getTimezone() |
String |
getUrl()
Returns a last.fm URL to this venue, e.g.: http://www.last.fm/venue/<id>-<venue name>
|
String |
getWebsite()
Returns an URL to the actual venue's website.
|
static Collection<Venue> |
search(String venue,
String apiKey)
Search for a venue by venue name.
|
static Collection<Venue> |
search(String venue,
String country,
String apiKey)
Search for a venue by venue name.
|
availableSizes, getImageURL, loadImages
public String getId()
public String getUrl()
getWebsite()
public String getWebsite()
public String getCity()
public String getCountry()
public float getLatitude()
public float getLongitude()
public String getName()
public String getPostal()
public String getStreet()
public String getTimezone()
public String getPhonenumber()
public static Collection<Venue> search(String venue, String apiKey)
venue
- The venue name you would like to search forapiKey
- A Last.fm API keypublic static Collection<Venue> search(String venue, String country, String apiKey)
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 keypublic static Collection<Event> getEvents(String venueId, String apiKey)
venueId
- The venue id to fetch the events forapiKey
- A Last.fm API keygetPastEvents(java.lang.String, java.lang.String)
public static PaginatedResult<Event> getPastEvents(String venueId, String apiKey)
venueId
- The id for the venue you would like to fetch event listings forapiKey
- A Last.fm API keypublic static PaginatedResult<Event> getPastEvents(String venueId, int page, String apiKey)
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