init(location:name:vendorIdentifier:restaurantIdentifier:)
Initializes a restaurant object with some identifying information.
Declaration
init(location: CLLocation, name: String, vendorIdentifier: String, restaurantIdentifier: String)Parameters
- location:
The location of the restaurant, specified as a geographic map coordinate. This value represents where the restaurant’s marker shows up on the map.
- name:
The name of the restaurant.
- vendorIdentifier:
A unique string that identifies the provider of the restaurant data. Typically, this string is your company’s domain name formatted as a reverse-DNS string such as
com.example. - restaurantIdentifier:
The unique identifier that you provided Apple for the specified restaurant.
Return Value
An initialized restaurant object or nil if the object could not be created.