Class Venue


public class Venue extends ImageHolder
Venue information bean.
Author:
Janni Kovacs
  • Method Details

    • getId

      public String getId()
    • getUrl

      public String 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

      public String getWebsite()
      Returns an URL to the actual venue's website.
      Returns:
      website url
    • getCity

      public String getCity()
    • getCountry

      public String getCountry()
    • getLatitude

      public float getLatitude()
    • getLongitude

      public float getLongitude()
    • getName

      public String getName()
    • getPostal

      public String getPostal()
    • getStreet

      public String getStreet()
    • getTimezone

      public String getTimezone()
    • getPhonenumber

      public String getPhonenumber()
    • search

      public static Collection<Venue> search(String venue, String apiKey)
      Search for a venue by venue name.
      Parameters:
      venue - The venue name you would like to search for
      apiKey - A Last.fm API key
      Returns:
      a list of venues
    • search

      public static Collection<Venue> search(String venue, String country, String apiKey)
      Search for a venue by venue name.
      Parameters:
      venue - The venue name you would like to search for
      country - Filter your results by country. Expressed as an ISO 3166-2 code
      apiKey - A Last.fm API key
      Returns:
      a list of venues
    • getEvents

      public static Collection<Event> getEvents(String venueId, String apiKey)
      Get a list of upcoming events at this venue.
      Parameters:
      venueId - The venue id to fetch the events for
      apiKey - A Last.fm API key
      Returns:
      a list of events
      See Also:
    • getPastEvents

      public static PaginatedResult<Event> getPastEvents(String venueId, String apiKey)
      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 for
      apiKey - A Last.fm API key
      Returns:
      a paginated list of events
    • getPastEvents

      public 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.
      Parameters:
      venueId - The id for the venue you would like to fetch event listings for
      page - The page of results to return
      apiKey - A Last.fm API key
      Returns:
      a paginated list of events