Skip to content

Commit 7b5b743

Browse files
authored
Merge pull request #77 from danieldupriest/readme-instructions-to-suppress-data-download
Added instructions for suppressing data download
2 parents 1d52b85 + 90338dd commit 7b5b743

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ geocoder.init({}, function () {
5555

5656
Optionally `init()` also allows you to specify which files to load data from.
5757
This reduces initialization time and the runtime memory footprint of the Node.js
58-
process. By default all files are loaded.
58+
process. By default, all files are loaded.
5959

6060
```javascript
6161
var geocoder = require('local-reverse-geocoder');
@@ -381,9 +381,11 @@ npm install local-reverse-geocoder
381381
## A Word on Data Freshness
382382

383383
By default, the local [GeoNames dump](http://download.geonames.org/export/dump/)
384-
data gets refreshed each day. You can override this behavior by removing the
385-
timestamp from the files in the `./geonames_dump` download folder. If you don't
386-
need admin1, admin2, admin3, admin4 or alternate names you can turn them off in
384+
data gets refreshed each day, creating files such as
385+
`admin1CodesASCII_YYYY-MM-DD.txt` in the cache directory. If you wish to reuse
386+
the existing downloaded files, you can rename them to remove the date, such as
387+
`admin1CodesASCII.txt`, which will suppress the download. If you don't
388+
need admin1, admin2, admin3, admin4 or alternate names, you can turn them off in
387389
a manual init call and decrease load time.
388390

389391
## A Word on Memory Usage

0 commit comments

Comments
 (0)