This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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], |