GMSPlaceViewportInfo Class Reference

GMSPlaceViewportInfo Class Reference

Overview

GMSPlaceViewportInfo represents a rectangular bounding box on the Earth's surface.

GMSPlaceViewportInfo is immutable and can't be modified after construction.

Public Member Functions

(id) - initWithNorthEast:southWest:
 Inits the northEast and southWest bounds corresponding to the rectangular region defined by the two corners.

Properties

CLLocationCoordinate2D northEast
 The North-East corner of these bounds.
CLLocationCoordinate2D southWest
 The South-West corner of these bounds.
BOOL valid
 Returns NO if this bounds does not contain any points.

Member Function Documentation

- (id) initWithNorthEast: (CLLocationCoordinate2D)  northEast
southWest: (CLLocationCoordinate2D)  southWest 

Inits the northEast and southWest bounds corresponding to the rectangular region defined by the two corners.

Parameters:
northEastThe North-East corner of these bounds.
southWestThe South-West corner of these bounds

Property Documentation

- (CLLocationCoordinate2D) northEast [read, assign]

The North-East corner of these bounds.

- (CLLocationCoordinate2D) southWest [read, assign]

The South-West corner of these bounds.

- (BOOL) valid [read, assign]

Returns NO if this bounds does not contain any points.

For example, [[GMSPlaceViewportInfo alloc] init].valid == NO.