RobThree / NGeoNames

Inspired by https://github.com/AReallyGoodName/OfflineReverseGeocode
MIT License
88 stars 22 forks source link

Is NearestNeighbourSearch() thread safe? #10

Closed RolfHegr closed 3 weeks ago

RolfHegr commented 1 year ago

Hi!

Is the NearestNeighbourSearch method thread safe?

Couldnt find anything explicitly on this in the docs and it was not 100% clear for me after reading the code, so thought Id ask.

Thanks, Rolf

RobThree commented 1 year ago

It should be (at least when you're using it in a read-only fashion), but the actual implementation is in KdTree.