<filename>dist/snippets/woosmap_http_distance_route/woosmap_http_distance_route.py
# [START woosmap_http_distance_route]
import requests

url = "https://api.woosmap.com/distance/route/json?origin=48.709%2C2.403&destination=48.709%2C2.303&mode=driving&language=en&alternatives=true&waypoints=48.850077%2C3.311124%7C48.850077%2C3.411124&method=distance&key=YOUR_PUBLIC_API_KEY"

payload={}
headers = {
    'Referer': 'http://localhost'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

# [END woosmap_http_distance_route]
<filename>dist/snippets/woosmap_http_distance_route/woosmap_http_distance_route.py
# [START woosmap_http_distance_route]
import requests

url = "https://api.woosmap.com/distance/route/json?origin=48.709%2C2.403&destination=48.709%2C2.303&mode=driving&language=en&alternatives=true&waypoints=48.850077%2C3.311124%7C48.850077%2C3.411124&method=distance&key=YOUR_PUBLIC_API_KEY"

payload={}
headers = {
    'Referer': 'http://localhost'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

# [END woosmap_http_distance_route]
# [START woosmap_http_distance_route] # [END woosmap_http_distance_route]