Import geopy.distance as geo_distance everywhere

This commit is contained in:
Alexander Hess 2026-11-30 19:55:34 +01:00
commit 07660ecff9
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -5,7 +5,7 @@ import json
import googlemaps as gm
import pytest
import sqlalchemy as sa
from geopy import distance
from geopy import distance as geo_distance
from sqlalchemy import exc as sa_exc
from velofy import db
@ -21,7 +21,7 @@ def another_address(make_address):
@pytest.fixture
def path(address, another_address, make_address):
"""A `Path` from `address` to `another_address`."""
air_distance = distance.great_circle(
air_distance = geo_distance.great_circle(
address.location.lat_lng,
another_address.location.lat_lng,
).meters