tomayac / local-reverse-geocoder

Local reverse geocoder for Node.js based on GeoNames data
Apache License 2.0
190 stars 58 forks source link

Fix tree building when using specific countries #62

Closed itaisatati closed 1 year ago

itaisatati commented 1 year ago

A fix for the problem specified in #46.

The tree was being rebuilt for every country so it only had the data of the last country in the list. This change will aggregate the data from all of the countries using async.parallel and build the tree once after the files finished downloading and parsing.

I increased the minimum Node.js version (and appropriate NPM version) because of the use of .flat()

tomayac commented 1 year ago

Just released v0.14.0 that includes this fix. Thanks again!

itaisatati commented 1 year ago

Sure :)