Looks like simple addition & subtraction? Or am I missing something?
I mean, the MK struct gives you the center point and dimensions of the rect. A 
CBLGeoRect contains the min and max coords.

—Jens

On Oct 21, 2015, at 12:57 AM, Brendan Duddridge 
<[email protected]<mailto:[email protected]>> wrote:

Hi,

I have an MKMapView which is providing me with the displayed region in the 
format of an MKCoordinateRegion.

The structure looks like this:


typedef struct {

    CLLocationDegrees latitudeDelta;

    CLLocationDegrees longitudeDelta;

} MKCoordinateSpan;


typedef struct {

    CLLocationCoordinate2D center;

    MKCoordinateSpan span;

} MKCoordinateRegion;



Does anyone know how I can convert that to a CBLGeoRect?


Thanks,


Brendan


--
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/49442b61-7c86-4edb-b8a8-9167a17b1ecc%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/49442b61-7c86-4edb-b8a8-9167a17b1ecc%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/75303E37-811E-4645-AA21-27664738BD1D%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to