New pricing and product changes will go into effect starting June 11, 2018. For more information, check out the Guide for Existing Users.

GMSPanoramaService Class Reference

GMSPanoramaService Class Reference

Overview

GMSPanoramaService can be used to request panorama metadata even when a GMSPanoramaView is not active.

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

Public Member Functions

(void) - requestPanoramaNearCoordinate:callback:
 Retrieves information about a panorama near the given coordinate.
(void) - requestPanoramaNearCoordinate:radius:callback:
 Similar to requestPanoramaNearCoordinate:callback: but allows specifying a search radius (meters) around coordinate.
(void) - requestPanoramaNearCoordinate:source:callback:
 Similar to requestPanoramaNearCoordinate:callback: but allows specifying the panorama source type near the given coordinate.
(void) - requestPanoramaNearCoordinate:radius:source:callback:
 Similar to requestPanoramaNearCoordinate:callback: but allows specifying a search radius (meters) and the panorama source type near the given coordinate.
(void) - requestPanoramaWithID:callback:
 Retrieves information about a panorama with the given panoramaID.

Related Functions

(Note that these are not member functions.)

typedef void(^ GMSPanoramaCallback )(GMSPanorama *_Nullable panorama, NSError *_Nullable error)
 Callback for when a panorama metadata becomes available.

Member Function Documentation

- (void) requestPanoramaNearCoordinate: (CLLocationCoordinate2D)  coordinate
callback: (GMSPanoramaCallback callback 

Retrieves information about a panorama near the given coordinate.

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

- (void) requestPanoramaNearCoordinate: (CLLocationCoordinate2D)  coordinate
radius: (NSUInteger)  radius
callback: (GMSPanoramaCallback callback 

Similar to requestPanoramaNearCoordinate:callback: but allows specifying a search radius (meters) around coordinate.

- (void) requestPanoramaNearCoordinate: (CLLocationCoordinate2D)  coordinate
source: (GMSPanoramaSource source
callback: (GMSPanoramaCallback callback 

Similar to requestPanoramaNearCoordinate:callback: but allows specifying the panorama source type near the given coordinate.

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

- (void) requestPanoramaNearCoordinate: (CLLocationCoordinate2D)  coordinate
radius: (NSUInteger)  radius
source: (GMSPanoramaSource source
callback: (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.

- (void) requestPanoramaWithID: (NSString *)  panoramaID
callback: (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.


Friends And Related Function Documentation

- (typedef void(^ GMSPanoramaCallback)(GMSPanorama *_Nullable panorama, NSError *_Nullable error)) [related]

Callback for when a panorama metadata becomes available.

If an error occurred, panorama is nil and error is not nil. Otherwise, panorama is not nil and error is nil.

Send feedback about...

Maps SDK for iOS
Maps SDK for iOS
Need help? Visit our support page.