Structures
The following structures are available globally.
-
Address
See moreDeclaration
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 moreDeclaration
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 moreDeclaration
Swift
public struct Asset : Decodable, Identifiable
-
Information about contacting staff at the facility
See moreDeclaration
Swift
public struct ContactInformation : Decodable
-
Contact available via phone
See moreDeclaration
Swift
public struct PhoneNumberInfo : Decodable
-
Contact available via email
See moreDeclaration
Swift
public struct EmailAddressInfo : Decodable
-
Fee information, e.g park entrance fee or par entrance pass fee
See moreDeclaration
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 moreDeclaration
Swift
public struct NewsRelease : Decodable, Identifiable
-
Image information provided by National Park Service
See moreDeclaration
Swift
public struct NpsImage : Decodable, Identifiable
-
Hours and seasons when a facility is open or closed
See moreDeclaration
Swift
public struct OperatingHour : Decodable
-
Exception to Standard Hour definition for a facility
See moreDeclaration
Swift
public struct StandardHourException : Decodable
-
Detailed hour information per weekday, e.g. “All Day” or “Closed” or “8:00AM - 8:00PM”
See moreDeclaration
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 moreDeclaration
Swift
public struct Park : Decodable, Identifiable, Hashable
-
Constants for the most important parks in the National Park system. List is not complete!
See moreDeclaration
Swift
public struct ParkCodeConstants
-
Generic options to influence or restrict the amount of data to be fetched from the National Park Service API
See moreDeclaration
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 moreDeclaration
Swift
public struct VisitorCenter : Decodable, Identifiable