GooglePlaces Framework Reference

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 
     ) 
     
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: