I\'m trying to calculate shipping rate based on distance by KM on Woocommerce by sending the total distance to an external API, so, for this purpose I have this function ins