intersect

Returns a new LatLngBounds that is the intersection of this with another LatLngBounds,

Return

LatLngBounds

Parameters

box

LatLngBounds to intersect with


fun intersect(northLat: Double, eastLon: Double, southLat: Double, westLon: Double): LatLngBounds

Returns a new LatLngBounds that is the intersection of this with another box.

This values of northLat and southLat should be in the range of -90, 90, see GeometryConstants.MIN_LATITUDE and GeometryConstants.MAX_LATITUDE, otherwise IllegalArgumentException will be thrown. northLat should be greater or equal southLat, otherwise IllegalArgumentException will be thrown.

eastLon should be greater or equal westLon, otherwise IllegalArgumentException will be thrown.

Return

LatLngBounds

Parameters

northLat

Northern Latitude corner point

eastLon

Eastern Longitude corner point

southLat

Southern Latitude corner point

westLon

Western Longitude corner point