Skip to content

Vacuum(...)

Alex-Kent edited this page Apr 4, 2019 · 6 revisions

$index->Vacuum( );
$index->Vacuum( \%point );
$index->Vacuum( \@points );
$index->Vacuum( undef, \@extra_keys );
$index->Vacuum( \%point, \@extra_keys );
$index->Vacuum( \@points, \@extra_keys );

Remove all data generated by Geo::Index from some or all points

The fields that will be removed are lat_rad, lon_rad, circumference, search_result_distance and antipode_distance.

Called on its own (with no point or points specified) this method will remove all generated data from all points in the index.

A list of additional keys to remove can optionally be supplied. To request vacuuming of all points with additional keys specified, use undef instead of \%point or \@points.

See also Sweep(…).


%point or @points
The point or a list of points to remove metadata from

@extra_keys
List of additional keys to remove


Added in 0.0.3, enhanced in 0.0.5