practice for save user geo location into database?
make a new model with longitude and latitude DecimalField
and relate that ono to one to Address model as location.
or save longitude and latitude directly to Address model?
Have a look at using PostGIS
👍 thanks. but i dont need to query location or do any special things on location stuff. i just need to save long and lat from user posted request, to pass it to delivery system in future (the project is application backend) i have doubt to make a new model or add them into current address model, in senario one i have one exra query to get user location from its table but code is more cleaner, in senario two i dont need extra query for location but code is not so clean.
Обсуждают сегодня