The WooCommerce Distance Rate Shipping extensions allows you to easily offer shipping rates based on the distance or total travel time to your customer.
Rules can be set up to charge based on the distance, total travel time as well as charging extra based on the total cart value, total weight of the products in the cart, and the number of items in the cart.