Opens a .bin file from disk, reading only what each lookup needs, with
Node's zlib as its inflater.
The search and locate indexes next to it (searchIndexPathFor,
locateIndexPathFor) are used automatically when they exist: each is
opened on the first search() / locate() that can use it. One that
exists but doesn't belong to this file (built from an older build of
it, say) makes those calls reject with a CGeoDataIndexMismatchError
naming it, rather than silently falling back to a slow scan; rebuild or
delete it. options.searchIndex / options.locateIndex override the
lookup next to the file.
Opens a
.binfile from disk, reading only what each lookup needs, with Node's zlib as its inflater.The search and locate indexes next to it (
searchIndexPathFor,locateIndexPathFor) are used automatically when they exist: each is opened on the firstsearch()/locate()that can use it. One that exists but doesn't belong to this file (built from an older build of it, say) makes those calls reject with aCGeoDataIndexMismatchErrornaming it, rather than silently falling back to a slow scan; rebuild or delete it.options.searchIndex/options.locateIndexoverride the lookup next to the file.