How can I integrate geolocation for shipping time display in my metafield code?

Hello, Im trying to add geolocations to display Canada or USA shipping times to this code with metafields. So the shipping times show either USA or Canada code for each location. How can I add geolocations to the code below?

Thanks


{% if product.metafields.custom.number_of_days_for_delivery != blank %}
  
    

**Estimated Delivery Date:**

      
        {% if product.metafields.custom.range_date_for_delivery != blank %}
          {% assign range_date_add = product.metafields.custom.range_date_for_delivery | date: "%s" | times: 86400 %}
          {% assign range_date = 'now' | date: "%s" | plus: range_date_add | date: "%d %b" %}
        {% endif %}
      {% assign days_to_add = product.metafields.custom.number_of_days_for_delivery | date: "%s" | times: 86400 %}
        
  {% assign future_date = 'now' | date: "%s" | plus: days_to_add | date: "%d %b" %}
    {% if range_date %} {{ range_date | append: ' to ' }} {% endif %} {{ future_date }}
    

  

{% endif %}