DetailsOptions

public struct DetailsOptions : Sendable

Options to configure a request for retrieve(mapboxID:options:)

  • Besides the basic metadata attributes, developers can request additional metadata with the AttributeSet parameter for example &attribute_sets=basic,photos,visit. The requested attributes will be provided in metadata object in the response.

    Declaration

    Swift

    public var attributeSets: [AttributeSet]
  • The ISO language code to be returned. If not provided, the default is English.

    Declaration

    Swift

    public var language: String?
  • The two digit ISO country code (such as ‘JP’) to request a worldview for the location data, if applicable data is available. This parameters will only be applicable for Boundaries and Places feature types.

    Declaration

    Swift

    public var worldview: String?
  • Undocumented

    Declaration

    Swift

    public init(attributeSets: [AttributeSet]? = nil, language: String? = nil, worldview: String? = nil)