.lookup() has issues if you call more than once before it has cached all geoNames data
chriskinsman opened this issue · comments
Chris Kinsman commented
.lookup() has issues if you call more than once before it has cached all geoNames data
Chris Kinsman commented
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...
Thomas Steiner commented
Seems like you fixed this yourself :-) in #6. Thanks!