-
Notifications
You must be signed in to change notification settings - Fork 21
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
Implement Openstreetmap provider #22
Conversation
I am not (yet !) contributor to georust/geocoding but I was wondering : shouldn't it be possible, for the user, to specify the endpoint address when creating a new In fact it looks already feasible with your PR, but it will requires some boilerplate (compared to having a |
If you'd like to use the |
Thanks for clarifying! I implemented moving I'd also be interested in adding the ability to specify a custom endpoint, is a separate constructor the most straightforward way of doing that? |
Yep I'd just add a |
Great, thanks! Just made that update so this should be ready for review |
Looks good to me! |
bors r+ |
22: Implement Openstreetmap provider r=urschrei a=pjsier Thanks for putting this library together! I took a stab at implementing an OpenStreetMap provider here since it was listed in #1 I tried to follow the patterns from the OpenCage provider and used the builder pattern for specifying additional parameters, but I'm new to Rust so let me know if anything seems off. I'd like to use the `InputBounds` struct for the `viewport` parameter here, but wanted to check and see what the best way of restructuring that would be Co-authored-by: pjsier <[email protected]>
Build succeeded |
Thanks for putting this library together! I took a stab at implementing an OpenStreetMap provider here since it was listed in #1
I tried to follow the patterns from the OpenCage provider and used the builder pattern for specifying additional parameters, but I'm new to Rust so let me know if anything seems off. I'd like to use the
InputBounds
struct for theviewport
parameter here, but wanted to check and see what the best way of restructuring that would be