8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Distance class became abstract in 2.0, meaning it can no longer be used as a generic metric (e.g. for handling km and miles conversions).
Distance
The text was updated successfully, but these errors were encountered:
Indeed, thanks for the report!
Technically the Distance class was never documented, so it wasn't considered as a part of the public API.
But given that this change was not documented, I'm going to remove the abstract class in the upcoming release 2.1.
2.1
For unit conversions there are functions exported by the geopy.units module, which are documented: https://geopy.readthedocs.io/en/stable/#module-geopy.units
geopy.units
Sorry, something went wrong.
ea9492c
Fixed in ea9492c.
I'm still unsure though if we want to keep supporting the usage of Distance class just for unit conversions, so it might get deprecated in future.
TYVM. I find it convenient to have units attached to the quantity, instead of relying on people reading documentation.
No branches or pull requests
The
Distance
class became abstract in 2.0, meaning it can no longer be used as a generic metric (e.g. for handling km and miles conversions).The text was updated successfully, but these errors were encountered: