GoogleMaps Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSPanoramaService
@interface GMSPanoramaService : NSObject
GMSPanoramaService
can be used to request panorama metadata even when a GMSPanoramaView
is
not active.
Get an instance like this: [[GMSPanoramaService alloc] init]
.
-
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 GMSPanoramaCallback)
Objective-C
- (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate
callback:(nonnull GMSPanoramaCallback)callback;
-
Declaration
Swift
func requestPanoramaNearCoordinate(_ coordinate: CLLocationCoordinate2D, radius: UInt, callback: @escaping GMSPanoramaCallback)
Objective-C
- (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate
radius:(NSUInteger)radius
callback:(nonnull GMSPanoramaCallback)callback;
-
-
Similar to -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
Objective-C
- (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate
radius:(NSUInteger)radius
source:(GMSPanoramaSource)source
callback:(nonnull GMSPanoramaCallback)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
Objective-C
- (void)requestPanoramaWithID:(nonnull NSString *)panoramaID
callback:(nonnull GMSPanoramaCallback)callback;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSPanoramaService\u003c/code\u003e allows you to request panorama metadata without needing an active \u003ccode\u003eGMSPanoramaView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to asynchronously retrieve information about panoramas near a given coordinate, optionally specifying a search radius and panorama source.\u003c/p\u003e\n"],["\u003cp\u003eYou can also request panorama information using a specific panorama ID obtained from the Google Maps SDK for iOS.\u003c/p\u003e\n"],["\u003cp\u003eThe service uses a callback mechanism to deliver the results of these asynchronous requests.\u003c/p\u003e\n"]]],["`GMSPanoramaService` retrieves panorama metadata, even without an active `GMSPanoramaView`. It's initialized via `[[GMSPanoramaService alloc] init]`. The service can request panorama information near a specific coordinate asynchronously via a callback. This can be done with or without a specified search radius and panorama source type. It also supports requesting panorama information directly by a given `panoramaID`. These methods use an asynchronous callback to return the results.\n"],null,["# GoogleMaps Framework Reference\n\nGMSPanoramaService\n==================\n\n @interface GMSPanoramaService : NSObject\n\n`GMSPanoramaService` can be used to request panorama metadata even when a [GMSPanoramaView](../Classes/GMSPanoramaView.html) is\nnot active.\n\nGet an instance like this: `[[GMSPanoramaService alloc] init]`.\n- `\n ``\n ``\n `\n\n ### [-requestPanoramaNearCoordinate:callback:](#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:callback:)\n\n `\n ` \n Retrieves information about a panorama near the given `coordinate`.\n\n This is an asynchronous request, `callback` will be called with the result. \n\n #### Declaration\n\n Swift \n\n func requestPanoramaNearCoordinate(_ coordinate: CLLocationCoordinate2D, callback: @escaping ../Type-Definitions/GMSPanoramaCallback.html)\n\n Objective-C \n\n - (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate\n callback:(nonnull ../Type-Definitions/GMSPanoramaCallback.html)callback;\n\n- `\n ``\n ``\n `\n\n ### [-requestPanoramaNearCoordinate:radius:callback:](#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:radius:callback:)\n\n `\n ` \n Similar to [-requestPanoramaNearCoordinate:callback:](../Classes/GMSPanoramaService.html#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:callback:) but allows specifying a search radius\n (meters) around `coordinate`. \n\n #### Declaration\n\n Swift \n\n func requestPanoramaNearCoordinate(_ coordinate: CLLocationCoordinate2D, radius: UInt, callback: @escaping ../Type-Definitions/GMSPanoramaCallback.html)\n\n Objective-C \n\n - (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate\n radius:(NSUInteger)radius\n callback:(nonnull ../Type-Definitions/GMSPanoramaCallback.html)callback;\n\n- `\n ``\n ``\n `\n\n ### [-requestPanoramaNearCoordinate:source:callback:](#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:source:callback:)\n\n `\n ` \n Similar to [-requestPanoramaNearCoordinate:callback:](../Classes/GMSPanoramaService.html#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:callback:) but allows specifying the panorama source\n type near the given `coordinate`.\n\n This API is experimental and may not always filter by source. \n\n #### Declaration\n\n Swift \n\n func requestPanoramaNearCoordinate(_ coordinate: CLLocationCoordinate2D, source: ../Enums/GMSPanoramaSource.html, callback: @escaping ../Type-Definitions/GMSPanoramaCallback.html)\n\n Objective-C \n\n - (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate\n source:(../Enums/GMSPanoramaSource.html)source\n callback:(nonnull ../Type-Definitions/GMSPanoramaCallback.html)callback;\n\n- `\n ``\n ``\n `\n\n ### [-requestPanoramaNearCoordinate:radius:source:callback:](#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:radius:source:callback:)\n\n `\n ` \n Similar to [-requestPanoramaNearCoordinate:callback:](../Classes/GMSPanoramaService.html#/c:objc(cs)GMSPanoramaService(im)requestPanoramaNearCoordinate:callback:) but allows specifying a search radius\n (meters) and the panorama source type near the given `coordinate`.\n\n This API is experimental and may not always filter by source. \n\n #### Declaration\n\n Swift \n\n func requestPanoramaNearCoordinate(_ coordinate: CLLocationCoordinate2D, radius: UInt, source: ../Enums/GMSPanoramaSource.html, callback: @escaping ../Type-Definitions/GMSPanoramaCallback.html)\n\n Objective-C \n\n - (void)requestPanoramaNearCoordinate:(CLLocationCoordinate2D)coordinate\n radius:(NSUInteger)radius\n source:(../Enums/GMSPanoramaSource.html)source\n callback:(nonnull ../Type-Definitions/GMSPanoramaCallback.html)callback;\n\n- `\n ``\n ``\n `\n\n ### [-requestPanoramaWithID:callback:](#/c:objc(cs)GMSPanoramaService(im)requestPanoramaWithID:callback:)\n\n `\n ` \n Retrieves information about a panorama with the given `panoramaID`.\n\n `callback` will be called with the result. Only panoramaIDs obtained from the Google Maps SDK for\n iOS are supported. \n\n #### Declaration\n\n Swift \n\n func requestPanorama(withID panoramaID: String, callback: @escaping ../Type-Definitions/GMSPanoramaCallback.html)\n\n Objective-C \n\n - (void)requestPanoramaWithID:(nonnull NSString *)panoramaID\n callback:(nonnull ../Type-Definitions/GMSPanoramaCallback.html)callback;"]]