This website requires JavaScript.
Explore
Help
Sign in
alexander
/
nehemiah
Watch
1
Star
1
Fork
You've already forked nehemiah
0
Code
Issues
Pull requests
Projects
Releases
Wiki
Activity
Actions
605ade4078
nehemiah
/
src
/
urban_meal_delivery
/
db
/
utils
/
__init__.py
3 lines
101 B
Python
Raw
Normal View
History
Unescape
Escape
Add UTMCoordinate class - the class is a utility to abstract working with latitude-longitude coordinates in their UTM representation (~ "cartesian plane") - the class's .x and .y properties enable working with simple x-y coordinates where the (0, 0) origin is the lower-left of a city's viewport
2021-01-02 14:31:59 +01:00
"""
Utilities used by the ORM models.
"""
Integrate the new Location class - the old `UTMCoordinate` class becomes the new `Location` class - its main purpose is to represent locations in both lat-long coordinates as well as in the UTM system - remove `Address.__init__()` and `City.__init__()` methods as they are not executed for entries retrieved from the database - simplfiy the `Location.__init__()` => remove `relative_to` argument
2021-01-04 20:33:10 +01:00
from
urban_meal_delivery
.
db
.
utils
.
locations
import
Location
Reference in a new issue
Copy permalink