Carrot reference
Functions
nearestOffice()
returns the nearest geographic location, including only office locations (no remote locations), to a particular person, group, or address syntax nearestoffice(entity\[, list]) parameters true 103,268 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type return type docid\ bzrx1mtdjk8cgkaw7ujqj , docid 7kum4sl wt2y ldfmo6qb , or docid\ khi0d64z7evk0dsm gjwf whichever entity provided in the list , or whichever docid 7kum4sl wt2y ldfmo6qb location is closest geographically, will be returned examples nearestoffice(person) returns the nearest location, that is an office, to the person nearestlocation(person, db group find{type\ location and name\ atlanta,boston,orlando}) returns which of the office locations matching "atlanta", "boston" or "orlando" is closest to the current person
