Structures

The following structures are available globally.

  • Address

    See more

    Declaration

    Swift

    public struct Address : Decodable
  • Alerts communicate information about hazardous, potentially hazardous, or changing conditions that may affect a visit to a national park. Alert data includes the type of alert, title, description, and optional link to additional information.

    See more

    Declaration

    Swift

    public struct Alert : Decodable, Identifiable
  • Places are shared content assets that are tagged so they can appear in a variety of places on NPS.gov. Data includes a title, image, short description of the content, and link to more information about the asset.

    See more

    Declaration

    Swift

    public struct Asset : Decodable, Identifiable
  • Information about contacting staff at the facility

    See more

    Declaration

    Swift

    public struct ContactInformation : Decodable
  • Contact available via phone

    See more

    Declaration

    Swift

    public struct PhoneNumberInfo : Decodable
  • Contact available via email

    See more

    Declaration

    Swift

    public struct EmailAddressInfo : Decodable
  • Fee

    Fee information, e.g park entrance fee or par entrance pass fee

    See more

    Declaration

    Swift

    public struct Fee : Decodable
  • News release data includes a title, abstract, and link to national park news releases, as well as an optional image.

    See more

    Declaration

    Swift

    public struct NewsRelease : Decodable, Identifiable
  • Image information provided by National Park Service

    See more

    Declaration

    Swift

    public struct NpsImage : Decodable, Identifiable
  • Hours and seasons when a facility is open or closed

    See more

    Declaration

    Swift

    public struct OperatingHour : Decodable
  • Exception to Standard Hour definition for a facility

    See more

    Declaration

    Swift

    public struct StandardHourException : Decodable
  • Detailed hour information per weekday, e.g. “All Day” or “Closed” or “8:00AM - 8:00PM”

    See more

    Declaration

    Swift

    public struct WeekInfo : Decodable
  • Park basics data includes location, contact, operating hours, and entrance fee/pass information for each national park. At least five photos of each park are also available.

    See more

    Declaration

    Swift

    public struct Park : Decodable, Identifiable, Hashable
  • Constants for the most important parks in the National Park system. List is not complete!

    See more

    Declaration

    Swift

    public struct ParkCodeConstants
  • Generic options to influence or restrict the amount of data to be fetched from the National Park Service API

    See more

    Declaration

    Swift

    public struct RequestOptions<T> where T : RequestableField
  • Visitor center data includes location, contact, and operating hours information for visitor centers and other visitor contact facilities in national parks At least one visitor center is listed for each park; some parks with multiple visitor centers may include information about more than one

    See more

    Declaration

    Swift

    public struct VisitorCenter : Decodable, Identifiable