Wordpress shipping module based on distance

I am making a website for a restaurant and need a shipping module based on distance, like km. In Wordpress with Woocommerce. There are modules like this, but I can only find with Google maps (api key) and they cost something for lookups. Who want’s to give money to Google these days?

So anybody knows any plugin like this that work with OpenStreetMap?