Module
GeoDistanceFilter
        GeoDistanceFilter ( fieldName )
    
    Filter results to those which fall within the given distance of the point of origin. 
  | 
Method Summary
| Returns | Name | Description | 
|---|---|---|
String | _type() | The type of ejs object. For internal use only. | 
Object | cache(trueFalse) | Enable or disable caching of the filter | 
Object | cacheKey(key) | Sets the cache key. | 
Object | distance(numericDistance) | Sets the numeric distance to be used. The distance can be a numeric value, and then the unit (either mi or km can be set) controlling the unit. Or a single string with the unit as well. | 
Object | distanceType(type) | How to compute the distance. Can either be arc (better precision) or plane (faster). Defaults to arc. | 
Object | field(f) | Sets the fields to filter against. | 
Object | name(name) | Sets the filter name. | 
Object | normalize(trueFalse) | If the lat/long points should be normalized to lie within their respective normalized ranges. Normalized ranges are: lon = -180 (exclusive) to 180 (inclusive) range lat = -90 to 90 (both inclusive) range | 
Object | optimizeBbox(t) | Will an optimization of using first a bounding box check will be used. Defaults to memory which will do in memory checks. Can also have values of indexed to use indexed value check, or none which disables bounding box optimization. | 
Object | point(p) | Sets the point of origin in which distance will be measured from | 
Object | toJSON() | Returns the filter object. | 
Object | unit(unit) | Sets the distance unit. Valid values are "mi" for miles or "km" for kilometers. Defaults to "km". | 
Method Detail
cache
        Object cache ( trueFalse )
    
    Enable or disable caching of the filter 
  | 
cacheKey
        Object cacheKey ( key )
    
    Sets the cache key. 
  | 
distance
        Object distance ( numericDistance )
    
    Sets the numeric distance to be used.  The distance can be a 
             numeric value, and then the unit (either mi or km can be set) 
             controlling the unit. Or a single string with the unit as well. 
  | 
distanceType
        Object distanceType ( type )
    
    How to compute the distance. Can either be arc (better precision) 
            or plane (faster). Defaults to arc. 
  | 
field
        Object field ( f )
    
    Sets the fields to filter against. 
  | 
name
        Object name ( name )
    
    Sets the filter name. 
  | 
normalize
        Object normalize ( trueFalse )
    
    If the lat/long points should be normalized to lie within their
            respective normalized ranges.
            
            Normalized ranges are:
            lon = -180 (exclusive) to 180 (inclusive) range
            lat = -90 to 90 (both inclusive) range 
  | 
optimizeBbox
        Object optimizeBbox ( t )
    
    Will an optimization of using first a bounding box check will be 
            used. Defaults to memory which will do in memory checks. Can also 
            have values of indexed to use indexed value check, or none which 
            disables bounding box optimization. 
  | 
point
        Object point ( p )
    
    Sets the point of origin in which distance will be measured from 
  | 
unit
        Object unit ( unit )
    
    Sets the distance unit.  Valid values are "mi" for miles or "km"
             for kilometers. Defaults to "km". 
  |