This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
NewerOlder