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

geocoderUrl should be configurable and/or public #12

Open
dhdaines opened this issue Dec 7, 2023 · 0 comments
Open

geocoderUrl should be configurable and/or public #12

dhdaines opened this issue Dec 7, 2023 · 0 comments

Comments

@dhdaines
Copy link

dhdaines commented Dec 7, 2023

Currently the way this library works requires you to expose your API key in client-side code. The only really secure way around this is to proxy the requests, which implies using a geocoderUrl other than https://api.geoapify.com/v1/geocode/autocomplete

So, it would be nice if the type definitions didn't declare geocoderUrl and placeDetailsUrl as private, or better yet, if there were an option in the constructor / an accessor to modify them.

If there's another solution for protecting the API key let me know!

hovsepyan021 added a commit that referenced this issue Sep 27, 2024
*added method setGeocoderUrl()
*added method setPlaceDetailsUrl()
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

1 participant