-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
when two -too close- source and destination points (edge case: The Source and Destination points are the same point) are called in directions function in the ORS it returns an empty summary field. This raises an exception in the parse_direction_json when trying to get route["properties"]["summary"]["duration"]: https://github.com/mthh/routingpy/blob/master/routingpy/routers/openrouteservice.py#L335
The following code could reproduce the error:
from routingpy import ORS
ors_client = ORS(api_key="", base_url="http://openrouteservice:8082/ors")
ors_client.directions(locations=[(35.032508, 32.426874), (35.032508, 32.426874)], profile="driving-car", format="json")
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels