Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Optimization API #241

Closed
wants to merge 22 commits into from
Closed

Optimization API #241

wants to merge 22 commits into from

Conversation

critical-path
Copy link
Contributor

@critical-path critical-path commented Jun 3, 2018

This attempts to address #162. I would be happy to make changes to the code, tests, etc.

  • At least two services, Optimization and Directions, rely upon identical code to handle waypoint snapping. I propose to move the relevant functions (encode_bearing, validate_radius, and validate_snapping) to encoding.py to avoid repeating them from service to service.

  • When discussing the optional query parameter for distributions, the API documentation says, "[t]he depot (first location) can only be a pick-up location, not a drop-off location." I need your assistance in determining how best to account for this in the _validate_distributions method.

@sgillies
Copy link
Contributor

@critical-path review of this PR must wait temporarily. Thank you for your patience!

@critical-path critical-path deleted the optimization-api branch January 8, 2019 01:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants