Page Summary
-
This documentation outlines globally available functions for utilizing Google Places in iOS development.
-
GMSPlaceRectangularLocationOptionallows filtering or biasing place results within a rectangular boundary defined by northeast and southwest coordinates. -
GMSPlaceCircularLocationOptionenables biasing place results towards a circular area specified by a center coordinate and radius. -
GMSPlacePropertyArrayprovides 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 & GMSPlaceLocationRestrictionObjective-C
extern id < GMSPlaceLocationBias , GMSPlaceLocationRestriction > _Nonnull GMSPlaceRectangularLocationOption ( CLLocationCoordinate2D northEastBounds , CLLocationCoordinate2D southWestBounds )Parameters
northEastBoundsThe north east corner of the bounds.
southWestBoundsThe 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 & GMSPlaceLocationRestrictionObjective-C
extern id < GMSPlaceLocationBias , GMSPlaceLocationRestriction > _Nonnull GMSPlaceCircularLocationOption ( CLLocationCoordinate2D center , CLLocationDistance radius )Parameters
centerThe center of the circle.
radiusThe radius of the circle.
-
Returns an array of all available
GMSPlaceProperty.Declaration
Swift
func GMSPlacePropertyArray () -> [ String ]Objective-C
extern NSArray < NSString *> * _Nonnull GMSPlacePropertyArray ( void )

