tomayac / local-reverse-geocoder

Local reverse geocoder for Node.js based on GeoNames data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.lookup() has issues if you call more than once before it has cached all geoNames data

chriskinsman opened this issue · comments

.lookup() has issues if you call more than once before it has cached all geoNames data

Easily fixed by manually calling _init() prior to wiring it up to an EventEmitter. Feels a little hinky calling an implied private method but can't think of an easy way to maintain the lazy loading behavior of lookUp that will work when you have parallel calls to lookUp...

Seems like you fixed this yourself :-) in #6. Thanks!