How do you implement rate limits when using an API module in python?
I have a code that is returning a list of directions for a csv with the latitude and longitude of several vehicles and their stops from OpenRouteService (ORS), an open source API. The data is in the format "EqupimentID,", "Latitude", "Longitude". I'm doing this using an api call through the ORS module. This should return a geojson of the directions, which is converted to an ESRI shapefile: import pandas as pd import openrouteservice as ors import fiona from openrouteservice import exceptions import requests import time csv_file = '24hourtrucks.csv' api_key = 'your key here' df = pd.read_csv(cs
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.