Add DistanceMatrix class

- the class stores the data of a distance matrix between all addresses
  + air distances
  + bicycle distances
- in addition, the "path" returned by the Google Directions API are
  also stored as a JSON serialized sequence of latitude-longitude pairs
- we assume a symmetric graph
This commit is contained in:
Alexander Hess 2021-03-02 14:36:07 +01:00
commit cc75307e5a
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
7 changed files with 442 additions and 2 deletions

View file

@ -24,7 +24,7 @@ def assoc(address, pixel):
@pytest.mark.no_cover
class TestSpecialMethods:
"""Test special methods in `Pixel`."""
"""Test special methods in `AddressPixelAssociation`."""
def test_create_an_address_pixel_association(self, assoc):
"""Test instantiation of a new `AddressPixelAssociation` object."""