This is in pretty early stages. Might consider instant-distance which I wrote a few years ago and which is in production use at instantdomainsearch.com:
https://github.com/instant-labs/instant-distance
There are Python bindings, too:
https://github.com/instant-labs/instant-distance
There are Python bindings, too: