N
N
newvasyuki2021-01-28 16:06:45
Django
newvasyuki, 2021-01-28 16:06:45

How to find a city by coordinates in GeoDjango?

There is the following task: there is a model / table of cities, fields: the name and coordinates of the city boundaries and the user's coordinates. What type of field from geodjango should be used to save the boundaries of the city and how to determine which city the coordinates belong to by the user's coordinates? If possible, please provide an example. It seems that MultiPolygonField should be suitable for preserving the boundaries of the city, but I'm not sure.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question