GIScience / GIScience/openrouteservice-py

missing keyword 'delivery' in optimization.Job

Open
#97 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
455
Forks
68
PR merge metrics
No merged PRs in 30d

Description

In the optimisation module, the class [Job](https://github.com/GIScience/openrouteservice-py/blob/9fc22f378db8f9ef98a1675031055b1ae2bec97b/openrouteservice/optimization.py#L104) doesn't accept the keyword argument `delivery`.

However in the online `POST` [example](https://openrouteservice.org/dev/#/api-docs/optimization/post), the keyword `delivery` is passed for each **job**:
![image](https://github.com/user-attachments/assets/5922836a-8bb3-44a6-a656-01b4a48b7871)

Is there something in the background transforming the **jobs** of the `POST` example into **jobs** and **shipments**? How can I reproduce the `POST` example using Python?

Many thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with openrouteservice/optimization.py at the Job class around line 104, then compare its accepted arguments with the linked online optimization POST example. Determine how the example's delivery field is represented in the Python client and verify whether the example can be reproduced; the issue does not mention a test file.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.