AI-generated Key Takeaways
-
This documentation outlines globally available functions for utilizing Google Places in iOS development.
-
GMSPlaceRectangularLocationOption
allows filtering or biasing place results within a rectangular boundary defined by northeast and southwest coordinates. -
GMSPlaceCircularLocationOption
enables biasing place results towards a circular area specified by a center coordinate and radius. -
GMSPlacePropertyArray
provides access to an array of all available place properties for detailed information retrieval.
Functions
The following functions are available globally.
-
Returns a rectangular location to filter place results inside the boundaries. Supports filtering as a restriction where results must be inside the bounds, or as a bias where results in the bounds are preferred.
Declaration
Swift
func GMSPlaceRectangularLocationOption(_ northEastBounds: CLLocationCoordinate2D, _ southWestBounds: CLLocationCoordinate2D) -> any GMSPlaceLocationBias & GMSPlaceLocationRestriction
Objective-C
extern id<GMSPlaceLocationBias, GMSPlaceLocationRestriction> _Nonnull GMSPlaceRectangularLocationOption( CLLocationCoordinate2D northEastBounds, CLLocationCoordinate2D southWestBounds)
Parameters
northEastBounds
The north east corner of the bounds.
southWestBounds
The south west corner of the bounds.
-
Returns a circular location to bias place results. Supports filtering as a bias where results inside the circle are preferred.
Declaration
Swift
func GMSPlaceCircularLocationOption(_ center: CLLocationCoordinate2D, _ radius: CLLocationDistance) -> any GMSPlaceLocationBias & GMSPlaceLocationRestriction
Objective-C
extern id< GMSPlaceLocationBias, GMSPlaceLocationRestriction> _Nonnull GMSPlaceCircularLocationOption(CLLocationCoordinate2D center, CLLocationDistance radius)
Parameters
center
The center of the circle.
radius
The radius of the circle.
-
Returns an array of all available
GMSPlaceProperty
.Declaration
Swift
func GMSPlacePropertyArray() -> [String]
Objective-C
extern NSArray<NSString *> *_Nonnull GMSPlacePropertyArray(void)