You've already forked Travel-Agent
13 lines
308 B
Python
13 lines
308 B
Python
__all__ = ("get_url_map",)
|
|
|
|
|
|
def get_url_map(coordinats: list, profile: str):
|
|
result_url = "https://graphhopper.com/maps/?"
|
|
|
|
for coordinat in coordinats:
|
|
result_url += f"point={coordinat[0]}, {coordinat[1]}&"
|
|
|
|
result_url += f"profile={profile}&layer=OpenStreetMap"
|
|
|
|
return result_url
|