Init

public struct Init : Codable

Init holds the properties of values to be set when initialzing a map.

  • Client id provided to you by Mappedin to access our API

    Note

    Contact your Mappedin representative if you do not have one.

    Declaration

    Swift

    public var clientId: String?
  • Client secret provided to you by Mappedin to access our API

    Note

    Contact your Mappedin representative if you do not have one.

    Declaration

    Swift

    public var clientSecret: String?
  • Name string of your venue

    Declaration

    Swift

    public var venue: String
  • Perspective of the venue

    Declaration

    Swift

    public var perspective: String?
  • Base url string of the venue

    Declaration

    Swift

    public var baseUrl: String?
  • Boolean value of whether there is no authorization

    Declaration

    Swift

    public var noAuth: Bool
  • An array of MPIHeader for requests

    Declaration

    Swift

    public var headers: [MPIHeader]?
  • [beta] Use a bundle for venue loading and cache it for faster subsequent loading

    Declaration

    Swift

    public var useBundle: Bool?
  • Construct a MPIOptions.Init object with the given properties

    Declaration

    Swift

    public init(
        clientId: String? = nil,
        clientSecret: String? = nil,
        venue: String,
        perspective: String = "Website",
        baseUrl: String? = nil,
        noAuth: Bool = false,
        headers: [MPIHeader]? = nil,
        useBundle: Bool = false
    )

    Parameters

    clientId

    given client id

    clientSecret

    given client secret

    venue

    given venue name

    perspective

    perspective

    baseUrl

    baseUrl

    noAuth

    whether there is no authorization

    headers

    an array of headers for the request

    useBundle

    [beta] whether we should use a venue bundle and cache for faster loading

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws