lib/query-builder.js
function latlon() {
  var args = mlutil.asArray.apply(null, arguments);
  switch(args.length) {
  case 0:
    throw new Error('missing latitude and longitude for latlon coordinate');
  case 1:
    throw new Error('missing longitude for latlon coordinate');
  case 2:
    return new LatLongDef(args[0], args[1]);
  default:
    throw new Error('too many arguments for latlon coordinate: '+args.length);
  }
}
function latlon() {
  var args = mlutil.asArray.apply(null, arguments);
  switch(args.length) {
  case 0:
    throw new Error('missing latitude and longitude for latlon coordinate');
  case 1:
    throw new Error('missing longitude for latlon coordinate');
  case 2:
    return new LatLongDef(args[0], args[1]);
  default:
    throw new Error('too many arguments for latlon coordinate: '+args.length);
  }
}
function latlon ( ) { var args = mlutil . asArray . apply ( null , arguments ) ; switch ( args . length ) { case 0 : throw new Error ( 'missing latitude and longitude for latlon coordinate' ) ; case 1 : throw new Error ( 'missing longitude for latlon coordinate' ) ; case 2 : return new LatLongDef ( args [ 0 ] , args [ 1 ] ) ; default : throw new Error ( 'too many arguments for latlon coordinate: ' + args . length ) ; } }
Specifies the latitude and longitude for a coordinate of the region
criteria for a geospatial query. The latitude and longitude can be
passed as individual numeric parameters or wrapped in an array
@method
@since 1.0
@memberof queryBuilder#
@param {number} latitude - the north-south location
@param {number} longitude - the east-west location
@returns {queryBuilder.LatLon} a coordinate for a {queryBuilder.Region}
Specifies the latitude and longitude for a coordinate of the region criteria for a geospatial query . The latitude and longitude can be passed as individual numeric parameters or wrapped in an array