Skip to content

Instantly share code, notes, and snippets.

@ivanstoyanov
ivanstoyanov / GeoQueries.m
Created February 14, 2012 16:27 — forked from EchoAbstract/GeoQueries.m
Geo Queries Demonstation
// This code assumes that you have a class with a description property,
// an address property and a coordinates property. To properly enable
// geo queries, makes sure to map the "description" property to _geoloc
// in your mapping function (eg, @"_geoloc", @"description" in the dictionary
// initializer).
myPlace1.description = @"2000 sq feed small company office";
myPlace1.address = @"1 Main St, Cambridge, MA";
myPlace1.coordinates = [NSArray arrayWithObjects:
[NSNumber numberWithDouble:-71.083934],