Browse Source

fixed comment

pull/295/head
Stephen Hess 9 years ago
parent
commit
e16e2bbb4e
  1. 2
      sanitiser/_geo_reverse.js

2
sanitiser/_geo_reverse.js

@ -14,7 +14,7 @@ module.exports = function sanitize( raw, clean ){
geo_common.sanitize_point( 'point', clean, raw, LAT_LON_IS_REQUIRED );
// this hack is to allow point.lat/point.lon to be used interchanagbly
// with boundary.circle.lat/boundary.circle/lon
// with boundary.circle.lat/boundary.circle.lon
if( !clean.hasOwnProperty('boundary.circle.lat') && clean.hasOwnProperty('point.lat') ){
raw['boundary.circle.lat'] = clean['point.lat'];
}

Loading…
Cancel
Save