skip_api_error in for loop #61
-
How would I go about using "self.default_skip_api_error:" within a loop? I am unsure as to the correct way to add this into my loop. I am using a CSV file to route 500 different points. At a certain coordinate, I get the error "routingpy.exceptions.RouterApiError: 400 ({'error_code': 442, 'error': 'No path could be found for input', 'status_code': 400, 'status': 'Bad Request'})" So I assume this attribute would be the best approach, just not sure the best way to add it in! Here is a sample of my loop:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
default_skip_api_error = True
doesn't do anything. eitheroptions
object as shown in the readme: https://github.com/gis-ops/routing-py#proxies-rate-limiters-and-api-errors