SearchResultMetadata
public struct SearchResultMetadata : Codable, Hashable
SearchResult additional information, such as phone, website and etc. Extra metadata contained in data field as dictionary.
-
Metadata extra data.
Declaration
Swift
public var data: [String : String]
-
Child metadata for a POI
Declaration
Swift
public var children: [ResultChildMetadata]?
-
SearchResult primary photos
Declaration
Swift
public var primaryImage: Image?
-
Additional photos
Declaration
Swift
public var otherImages: [Image]?
-
Business phone number
Declaration
Swift
public var phone: String?
-
Business website
Declaration
Swift
public var website: URL?
-
Number of reviews
Declaration
Swift
public var reviewCount: Int?
-
The average rating of the location, on a scale from 1 to 5.
Declaration
Swift
public var rating: Double?
-
The average rating of the location, on a scale from 1 to 5. Deprecated: Please use the
rating
field for this value.Declaration
Swift
public var averageRating: Double?
-
Business opening hours
Declaration
Swift
public var openHours: OpenHours?
-
Long form detailed description for POI.
Declaration
Swift
public var description: String?
-
The price level of the location, represented by a string including dollar signs. The values scale from Cheap “$” to Most Expensive “$$$$”.
Declaration
Swift
public var priceLevel: String?
-
A popularity score for the location, calculated based on user engagement and review counts. The value scales from 0 to 1, 1 being the most popular.
Declaration
Swift
public var popularity: Float?
-
Indicates whether the location is accessible by wheelchair.
Declaration
Swift
public var wheelchairAccessible: Bool?
-
Indicates whether the location offers delivery services.
Declaration
Swift
public var delivery: Bool?
-
Indicates whether the location has a drive-through service.
Declaration
Swift
public var driveThrough: Bool?
-
Indicates whether the location accepts reservations.
Declaration
Swift
public var reservable: Bool?
-
Indicates whether parking is available at the location.
Declaration
Swift
public var parkingAvailable: Bool?
-
Indicates whether valet parking services are offered.
Declaration
Swift
public var valetParking: Bool?
-
Indicates the availability of street parking near the location.
Declaration
Swift
public var streetParking: Bool?
-
Indicates whether breakfast is served.
Declaration
Swift
public var servesBreakfast: Bool?
-
Indicates whether brunch is served.
Declaration
Swift
public var servesBrunch: Bool?
-
Indicates whether dinner is served.
Declaration
Swift
public var servesDinner: Bool?
-
Indicates whether lunch is served.
Declaration
Swift
public var servesLunch: Bool?
-
Indicates whether wine is served.
Declaration
Swift
public var servesWine: Bool?
-
Indicates whether beer is served.
Declaration
Swift
public var servesBeer: Bool?
-
Indicates whether vegan diet options are available.
Declaration
Swift
public var servesVegan: Bool?
-
Indicates whether vegetarian diet options are available.
Declaration
Swift
public var servesVegetarian: Bool?
-
Indicates whether takeout services are available.
Declaration
Swift
public var takeout: Bool?
-
The Facebook ID associated with the feature.
Declaration
Swift
public var facebookId: String?
-
The fax number associated with the location.
Declaration
Swift
public var fax: String?
-
The email address associated with the location.
Declaration
Swift
public var email: String?
-
The Instagram handle associated with the location.
Declaration
Swift
public var instagram: String?
-
The Twitter handle associated with the location.
Declaration
Swift
public var twitter: String?
-
Detailed description
Declaration
Swift
public var detailedDescription: String?
-
init(data:primaryImage:otherImages:phone:website:reviewCount:averageRating:openHours:children:description:priceLevel:popularity:wheelchairAccessible:delivery:driveThrough:reservable:parkingAvailable:valetParking:streetParking:servesBreakfast:servesBrunch:servesDinner:servesLunch:servesWine:servesBeer:servesVegan:servesVegetarian:takeout:facebookId:fax:email:instagram:twitter:)
Undocumented
Declaration
Swift
public init( data: [String: String], primaryImage: Image?, otherImages: [Image]?, phone: String?, website: URL?, reviewCount: Int?, averageRating: Double?, openHours: OpenHours?, children: [ResultChildMetadata]? = nil, description: String? = nil, priceLevel: String? = nil, popularity: Float? = nil, wheelchairAccessible: Bool? = nil, delivery: Bool? = nil, driveThrough: Bool? = nil, reservable: Bool? = nil, parkingAvailable: Bool? = nil, valetParking: Bool? = nil, streetParking: Bool? = nil, servesBreakfast: Bool? = nil, servesBrunch: Bool? = nil, servesDinner: Bool? = nil, servesLunch: Bool? = nil, servesWine: Bool? = nil, servesBeer: Bool? = nil, servesVegan: Bool? = nil, servesVegetarian: Bool? = nil, takeout: Bool? = nil, facebookId: String? = nil, fax: String? = nil, email: String? = nil, instagram: String? = nil, twitter: String? = nil )
-
Access to the raw metadata strings
Declaration
Swift
public subscript(key: String) -> String? { get }