-
Notifications
You must be signed in to change notification settings - Fork 664
Add support for non-free MapQuest API #399
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's already a geocoder class which supports MapQuest: https://github.com/geopy/geopy/blob/master/geopy/geocoders/openmapquest.py
Having two different classes for the same provider looks quite confusing. However, the following document clears things up to me: https://developer.mapquest.com/documentation/open/nominatim-search/ : MapQuest provide two different APIs with different data. Could you please mention that document in docstrings of both classes and cross-link the classes, so it would be clear from the docs which class one should use for MapQuest?
Also, could you please add tests for this new class?
This sentence is very confusing:
|
Sorry about the confusion. Your interpretation is correct: I used the MapBox class as a skeleton to generate the non-free Mapquest class.
That's also the correct link to the documentation. I've updated my initial PR to point to the correct link. |
Also change references to "bbox" in docs to "bounds"
3f9ca45 to
6666eb1
Compare
|
I think I have fixed all the changes you have requested and added tests to Let me know if you need a key to add to the CI. Thank you for taking the time to review this PR! |
KostyaEsmukov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the changes!
I'm merging this, but going to make some little changes on top in master.
I tested locally with the already existing OPENMAPQUEST_APIKEY value and it worked fine, so I don't need a key, thanks.
Small addition to create support for the non-free MapQuest API. It's mostly copied from the Mapbox provider with slight changes to fit the Mapquest API (documented here)