# GoogleMaps Framework Reference

# GMSPanoramaService

    @interface GMSPanoramaService : NSObject

`GMSPanoramaService` can be used to request panorama metadata even when a `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaView.html` is
not active.

Get an instance like this: `[[GMSPanoramaService alloc] init]`.
- `


  ### [-requestPanoramaNearCoordinate:callback:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaService#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:callback:)


  ` Retrieves information about a panorama near the given `coordinate`.

  This is an asynchronous request, `callback` will be called with the result.

  #### Declaration

  Swift

      func requestPanoramaNearCoordinate(_ coordinate: CLLocationCoordinate2D, callback: @escaping https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Type-Definitions/GMSPanoramaCallback.html)

  Objective-C

      - (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate
                                   callback:(nonnull https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Type-Definitions/GMSPanoramaCallback.html)callback;

- `


  ### [-requestPanoramaNearCoordinate:radius:callback:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaService#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:radius:callback:)


  ` Similar to `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaService.html#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:callback:` but allows specifying a search radius
  (meters) around `coordinate`.

  #### Declaration

  Swift

      func requestPanoramaNearCoordinate(_ coordinate: CLLocationCoordinate2D, radius: UInt, callback: @escaping https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Type-Definitions/GMSPanoramaCallback.html)

  Objective-C

      - (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate
                                     radius:(NSUInteger)radius
                                   callback:(nonnull https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Type-Definitions/GMSPanoramaCallback.html)callback;

- `


  ### [-requestPanoramaNearCoordinate:source:callback:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaService#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:source:callback:)


  ` Similar to `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaService.html#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:callback:` but allows specifying the panorama source
  type near the given `coordinate`.

  This API is experimental and may not always filter by source.

  #### Declaration

  Swift

      func requestPanoramaNearCoordinate(_ coordinate: CLLocationCoordinate2D, source: https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Enums/GMSPanoramaSource.html, callback: @escaping https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Type-Definitions/GMSPanoramaCallback.html)

  Objective-C

      - (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate
                                     source:(https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Enums/GMSPanoramaSource.html)source
                                   callback:(nonnull https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Type-Definitions/GMSPanoramaCallback.html)callback;

- `


  ### [-requestPanoramaNearCoordinate:radius:source:callback:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaService#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:radius:source:callback:)


  ` Similar to `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaService.html#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:callback:` but allows specifying a search radius
  (meters) and the panorama source type near the given `coordinate`.

  This API is experimental and may not always filter by source.

  #### Declaration

  Swift

      func requestPanoramaNearCoordinate(_ coordinate: CLLocationCoordinate2D, radius: UInt, source: https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Enums/GMSPanoramaSource.html, callback: @escaping https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Type-Definitions/GMSPanoramaCallback.html)

  Objective-C

      - (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate
                                     radius:(NSUInteger)radius
                                     source:(https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Enums/GMSPanoramaSource.html)source
                                   callback:(nonnull https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Type-Definitions/GMSPanoramaCallback.html)callback;

- `


  ### [-requestPanoramaWithID:callback:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaService#/c:objc(cs)GMSPanoramaService(im)requestPanoramaWithID:callback:)


  ` Retrieves information about a panorama with the given `panoramaID`.

  `callback` will be called with the result. Only panoramaIDs obtained from the Google Maps SDK for
  iOS are supported.

  #### Declaration

  Swift

      func requestPanorama(withID panoramaID: String, callback: @escaping https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Type-Definitions/GMSPanoramaCallback.html)

  Objective-C

      - (void)requestPanoramaWithID:(nonnull NSString *)panoramaID
                           callback:(nonnull https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Type-Definitions/GMSPanoramaCallback.html)callback;