Add Address.x and Address.y coordinates

- the Address.x and Address.y properties use the UTMCoordinate class
  behind the scenes
- x and y are simple coordinates in an x-y plane
- the (0, 0) origin is the southwest corner of Address.city.viewport
This commit is contained in:
Alexander Hess 2021-01-02 16:29:50 +01:00
commit 6cb4be80f6
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
5 changed files with 69 additions and 1 deletions

View file

@ -134,8 +134,11 @@ per-file-ignores =
WPS115,
# Numbers are normal in config files.
WPS432,
# No real string constant over-use.
src/urban_meal_delivery/db/addresses.py:
WPS226,
src/urban_meal_delivery/db/cities.py:
WPS226,
src/urban_meal_delivery/db/orders.py:
WPS226,
tests/*.py: