Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.2.4 | Constructor overrides, concurrency safety and ready for v1.2.4 release. #18

Merged
merged 6 commits into from
Feb 7, 2024

Conversation

Dhi13man
Copy link
Owner

@Dhi13man Dhi13man commented Feb 6, 2024

  1. MINOR BREAKING: Removed getter and setter for profile in OpenRouteService class. It is now final and can only be set via the constructor defaultProfile parameter. This system is more concurrency-safe. If it needs to be overridden at the API call level, that can anyway be done by passing in profileOverride to the respective API method.

  2. Ability to change baseUrl #17 | Made API more flexible by allowing constructor-based overrides in OpenRouteService class of:

  • baseUrl, the default API Base URL
  • client, the HTTP Client being used to make the requests
  • defaultProfile, the default openrouteservice profile being used to make the requests.
  1. Ternary operator null check replaced with the null-aware operator in Vroom and Optimization data models

  2. Getting from name and vice versa is now done using a map internally, making it more readable and maintainable

@Dhi13man Dhi13man mentioned this pull request Feb 6, 2024
@Dhi13man Dhi13man self-assigned this Feb 6, 2024
@Dhi13man Dhi13man added the enhancement New feature or request label Feb 6, 2024
@Dhi13man Dhi13man merged commit 49cc65a into main Feb 7, 2024
2 checks passed
@Dhi13man Dhi13man deleted the fix/constructor-overrides branch February 7, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants