ResultChildMetadata

public struct ResultChildMetadata : Codable, Hashable

Undocumented

  • Undocumented

    Declaration

    Swift

    public var category: String?
  • Undocumented

    Declaration

    Swift

    public var coordinates: CLLocationCoordinate2D? { get }
  • Undocumented

    Declaration

    Swift

    public var mapboxId: String
  • Undocumented

    Declaration

    Swift

    public var name: String?
  • Initializes a new instance of ResultChildMetadata with optional category, coordinates, and name, and a required mapboxId.

    Declaration

    Swift

    public init(
        mapboxId: String,
        name: String? = nil,
        category: String? = nil,
        coordinate: CLLocationCoordinate2D? = nil
    )

    Parameters

    mapboxId

    A required String that uniquely identifies the Mapbox object. This is a required parameter and must be provided during initialization.

    name

    An optional String representing the name of the result.

    category

    An optional String representing the category of the result.

    coordinate

    An optional CLLocationCoordinate2D representing the geographical location associated with the result. If provided, it is transformed to a CLLocationCoordinate2DCodable instance for storage.