Ravi Ravi - 1 year ago 137
Objective-C Question

check availability of google street view using google map sdk for ios

I am using

Google Maps SDK
iOS v 2.0.1.
GMSPanoramaView class,
i am able to show street view for points where street view is available, but at the coordinates where street view isn't available, nothing gets shown on pano view and progress indicator keeps spinning.

Is there any way to check availability of
street view near a particular coordinate using
Google Maps SDK
objective c

Answer Source

To check if a Streetview panorama exists for a certain location or not ? you have to use the GMSPanoramaViewDelegate

- (void) panoramaView:      (GMSPanoramaView *)     view
didMoveToPanorama:      (GMSPanorama *_Nullable)    panorama {
   //If the panorama.panoramaID NSString is null, then the panorama could not be loaded.

you can also Called when moveNearCoordinate: produces an error.

- (void) panoramaView:      (GMSPanoramaView *)     view
error:      (NSError *)     error
onMoveNearCoordinate:       (CLLocationCoordinate2D)    coordinate {

Hope this help you...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download