Skip to content

Instantly share code, notes, and snippets.

View tjukanovt's full-sized avatar

Topi Tjukanov tjukanovt

View GitHub Profile
import requests
import csv
import datetime
import calendar
import time
i=0
# Change the range depending on how long you like to record the data
for i in range (0,50):
@tjukanovt
tjukanovt / api_calls.py
Last active July 7, 2021 17:17
Two Python scripts that can be used to create animated route maps to multiple locations
import pandas as pd
import urllib.request
# path to your csv file with the endpoint coordinates
coordinates = pd.read_csv('swe_points.csv')
# graphhopper API call building blocks. Check Graphhopper documentation how to modify these.
urlStart = 'http://localhost:8989/route?'
point = 'point='
urlEnd = '&type=gpx&instructions=false&vehicle=car'