Classes
The following classes are available globally.
-
Represents a component of an address, e.g., street number, postcode, city, etc.
Declaration
Swift
class GMSAddressComponent : NSObjectObjective-C
@interface GMSAddressComponent : NSObject -
GMSAutocompleteFetcheris a wrapper around the lower-level autocomplete APIs that encapsulates some of the complexity of requesting autocomplete predictions as the user is typing. Calling sourceTextHasChanged will generally result in the provided delegate being called with autocomplete predictions for the queried text, with the following provisos:- The fetcher may not necessarily request predictions on every call of sourceTextHasChanged if several requests are made within a short amount of time.
- The delegate will only be called with prediction results if those predictions are for the text supplied in the most recent call to sourceTextHasChanged.
Declaration
Swift
class GMSAutocompleteFetcher : NSObjectObjective-C
@interface GMSAutocompleteFetcher : NSObject -
This class represents a set of restrictions that may be applied to autocomplete requests. This allows customization of autocomplete suggestions to only those places that are of interest.
Declaration
Swift
class GMSAutocompleteFilter : NSObjectObjective-C
@interface GMSAutocompleteFilter : NSObject -
This class represents a matched fragment of a string. This is a contiguous range of characters in a string, suitable for highlighting in an autocompletion UI.
Declaration
Swift
class GMSAutocompleteMatchFragment : NSObjectObjective-C
@interface GMSAutocompleteMatchFragment : NSObject -
This class represents a place suggestion of a full query based on a partially typed string.
Declaration
Swift
class GMSAutocompletePlaceSuggestion : NSObjectObjective-C
@interface GMSAutocompletePlaceSuggestion : NSObject -
This class represents a prediction of a full query based on a partially typed string.
Declaration
Swift
class GMSAutocompletePrediction : NSObjectObjective-C
@interface GMSAutocompletePrediction : NSObject -
The request for autocomplete data.
Declaration
Swift
class GMSAutocompleteRequest : NSObjectObjective-C
@interface GMSAutocompleteRequest : NSObject -
GMSAutocompleteResultsViewControllerprovides an interface that displays place autocomplete predictions in a table view. The table view will be automatically updated as input text changes.This class is intended to be used as the search results controller of a UISearchController. Pass an instance of
GMSAutocompleteResultsViewControllerto UISearchController’s initWithSearchResultsController method, then set the controller as the UISearchController’s searchResultsUpdater property.Use the
GMSAutocompleteResultsViewControllerDelegatedelegate protocol to be notified when a place is selected from the list.Declaration
Swift
class GMSAutocompleteResultsViewController : UIViewController, UISearchResultsUpdatingObjective-C
@interface GMSAutocompleteResultsViewController : UIViewController <UISearchResultsUpdating> -
This class represents a session token to uniquely identify a series of queries to the Google Places API Services for fetching place predictions for a partial search string.
Declaration
Swift
class GMSAutocompleteSessionToken : NSObjectObjective-C
@interface GMSAutocompleteSessionToken : NSObject -
This class represents a suggestion of a full query based on a partially typed string.
Declaration
Swift
class GMSAutocompleteSuggestion : NSObjectObjective-C
@interface GMSAutocompleteSuggestion : NSObject -
GMSAutocompleteTableDataSourceprovides an interface for providing place autocomplete predictions to populate a UITableView by implementing the UITableViewDataSource and UITableViewDelegate protocols.GMSAutocompleteTableDataSourceis designed to be used as the data source for a UISearchDisplayController.NOTE:
UISearchDisplayControllerhas been deprecated since iOS 8. It is now recommended to use UISearchController withGMSAutocompleteResultsViewControllerto display autocomplete results using the iOS search UI.Set an instance of
GMSAutocompleteTableDataSourceas the searchResultsDataSource and searchResultsDelegate properties ofUISearchDisplayController. In your implementation ofshouldReloadTableForSearchString, callsourceTextHasChangedwith the current search string.Use the
GMSAutocompleteTableDataSourceDelegatedelegate protocol to be notified when a place is selected from the list. Because autocomplete predictions load asynchronously, it is necessary to implementdidUpdateAutocompletePredictionsand call reloadData on theUISearchDisplayController‘s table view.Declaration
Swift
class GMSAutocompleteTableDataSource : NSObject, UITableViewDataSource, UITableViewDelegateObjective-C
@interface GMSAutocompleteTableDataSource : NSObject <UITableViewDataSource, UITableViewDelegate> -
GMSAutocompleteViewControllerprovides an interface that displays a table of autocomplete predictions that updates as the user enters text. Place selections made by the user are returned to the app via theGMSAutocompleteViewControllerResultsDelegateprotocol.To use
GMSAutocompleteViewController, set its delegate to an object in your app that conforms to theGMSAutocompleteViewControllerDelegateprotocol and present the controller (eg using presentViewController). TheGMSAutocompleteViewControllerDelegatedelegate methods can be used to determine when the user has selected a place or has cancelled selection.Declaration
Swift
class GMSAutocompleteViewController : UIViewControllerObjective-C
@interface GMSAutocompleteViewController : UIViewController -
Request object to use with
GMSPlacesClientto fetch a photo.Declaration
Swift
class GMSFetchPhotoRequest : NSObjectObjective-C
@interface GMSFetchPhotoRequest : NSObject -
Request object to use with
GMSPlacesClientto fetch a place.Declaration
Swift
class GMSFetchPlaceRequest : NSObjectObjective-C
@interface GMSFetchPlaceRequest : NSObject -
A class representing time in hours and minutes in a 24hr clock.
Declaration
Swift
class GMSTime : NSObjectObjective-C
@interface GMSTime : NSObject -
A class representing a open/close event in
GMSPeriod.Declaration
Swift
class GMSEvent : NSObjectObjective-C
@interface GMSEvent : NSObject -
A class to handle storing and accessing opening hours information for
GMSPlace.Declaration
Swift
class GMSOpeningHours : NSObjectObjective-C
@interface GMSOpeningHours : NSObject -
Represents a particular physical place. A
GMSPlaceencapsulates information about a physical location, including its name, location, and any other information we might have about it. This class is immutable.Declaration
Swift
class GMSPlace : NSObjectObjective-C
@interface GMSPlace : NSObject -
A class representing an author attribution.
Declaration
Swift
class GMSPlaceAuthorAttribution : NSObjectObjective-C
@interface GMSPlaceAuthorAttribution : NSObject -
Represents an is open request definition to be sent via
GMSPlacesClient.Declaration
Swift
class GMSPlaceIsOpenRequest : NSObjectObjective-C
@interface GMSPlaceIsOpenRequest : NSObject -
The response object for the
isOpenWithRequest:callback:method.Declaration
Swift
class GMSPlaceIsOpenResponse : NSObjectObjective-C
@interface GMSPlaceIsOpenResponse : NSObject -
Represents a
GMSPlaceand the relative likelihood of the place being the best match within the list of returned places for a single request. For more information about place likelihoods, seeGMSPlaceLikelihoodList.Declaration
Swift
class GMSPlaceLikelihood : NSObject, NSCopyingObjective-C
@interface GMSPlaceLikelihood : NSObject <NSCopying> -
Represents a list of places with an associated likelihood for the place being the correct place. For example, the Places service may be uncertain what the true Place is, but think it 55% likely to be PlaceA, and 35% likely to be PlaceB. The corresponding likelihood list has two members, one with likelihood 0.55 and the other with likelihood 0.35. The likelihoods are not guaranteed to be correct, and in a given place likelihood list they may not sum to 1.0.
Declaration
Swift
class GMSPlaceLikelihoodList : NSObjectObjective-C
@interface GMSPlaceLikelihoodList : NSObject -
The metadata corresponding to a single photo associated with a place.
Declaration
Swift
class GMSPlacePhotoMetadata : NSObjectObjective-C
@interface GMSPlacePhotoMetadata : NSObject -
A list of
GMSPlacePhotoMetadataobjects.Declaration
Swift
class GMSPlacePhotoMetadataList : NSObjectObjective-C
@interface GMSPlacePhotoMetadataList : NSObject -
This class represents a single place review.
Declaration
Swift
class GMSPlaceReview : NSObjectObjective-C
@interface GMSPlaceReview : NSObject -
Represents a text search request definition to be sent via
GMSPlacesClient.Declaration
Swift
class GMSPlaceSearchByTextRequest : NSObjectObjective-C
@interface GMSPlaceSearchByTextRequest : NSObject -
Request object to use with
GMSPlacesClientto fetch nearby places.Declaration
Swift
class GMSPlaceSearchNearbyRequest : NSObjectObjective-C
@interface GMSPlaceSearchNearbyRequest : NSObject -
Represents information on a particular day which may have opening hours different than normal.
Declaration
Swift
class GMSPlaceSpecialDay : NSObjectObjective-C
@interface GMSPlaceSpecialDay : NSObject -
GMSPlaceViewportInforepresents a rectangular bounding box on the Earth’s surface.GMSPlaceViewportInfois immutable and can’t be modified after construction.Declaration
Swift
class GMSPlaceViewportInfo : NSObjectObjective-C
@interface GMSPlaceViewportInfo : NSObject -
Main interface to the Places SDK. Used for searching and getting details about places. This class should be accessed through the
[GMSPlacesClient sharedClient]method.GMSPlacesClientmethods should only be called from the main thread. Calling these methods from another thread will result in an exception or undefined behavior. Unless otherwise specified, all callbacks will be invoked on the main thread.Declaration
Swift
class GMSPlacesClient : NSObjectObjective-C
@interface GMSPlacesClient : NSObject -
A class containing the Plus codes representation for a location. See https://plus.codes/ for more details.
Declaration
Swift
class GMSPlusCode : NSObjectObjective-C
@interface GMSPlusCode : NSObject