Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -141,7 +141,7 @@ def page_article_to_social_post():
|
|
| 141 |
|
| 142 |
# Corrected Function to get a route from OpenRouteService
|
| 143 |
def get_route(start_coord, end_coord, api_key):
|
| 144 |
-
api_key = os.getenv('
|
| 145 |
url = "https://api.openrouteservice.org/v2/directions/driving-car"
|
| 146 |
headers = {
|
| 147 |
'Authorization': api_key,
|
|
|
|
| 141 |
|
| 142 |
# Corrected Function to get a route from OpenRouteService
|
| 143 |
def get_route(start_coord, end_coord, api_key):
|
| 144 |
+
api_key = os.getenv('OPENSTREET_API')
|
| 145 |
url = "https://api.openrouteservice.org/v2/directions/driving-car"
|
| 146 |
headers = {
|
| 147 |
'Authorization': api_key,
|