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

Custom Endpoint #62

Open
Statsguy808 opened this issue Oct 30, 2024 · 4 comments
Open

Custom Endpoint #62

Statsguy808 opened this issue Oct 30, 2024 · 4 comments

Comments

@Statsguy808
Copy link

Are there any plans to add an option for custom Endpoints when connecting, so that we can leverage hipaa compliant datasets?

@bennylope
Copy link
Owner

No plans, but would welcome a proposal or just a little bit more info about what this actually means in practice.

@Statsguy808
Copy link
Author

Statsguy808 commented Oct 30, 2024

Sure, this would be allowing the entering of either a custom base url rather than 'https://API.geocod.io/v{api_version}'. There are instances where companies have their own base url API and also instances where you would want to hit the HIPAA compliant base url ('https://api-hipaa.geocod.io/v{api_version'). Let me know if that makes sense.
Edit: whoops see HIPAA enabled code on here but no custom.

@bennylope
Copy link
Owner

Documentation is the problem here!

The client already supports both custom endpoints and the HIPPA compliant endpoint.

def __init__(self, key, order="lat", version=None, hipaa_enabled=False, auto_load_api_version=True, timeout=None, custom_base_domain=None):
"""
"""
if custom_base_domain is None:
self.hipaa_enabled = hipaa_enabled
self.BASE_DOMAIN = "https://api{hipaa_append}.geocod.io".format(
hipaa_append=('-hipaa' if self.hipaa_enabled else ''))
else:
self.BASE_DOMAIN = custom_base_domain

@Statsguy808
Copy link
Author

Oh great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants