0
good night,
I am implementing a project using Django and have the following model:
class ModelExample(models.Model):
city = models.CharField("Cidade", max_length=100, blank=True)
state = models.CharField("Estado", max_length=2, blank=True)
polygon = gis_models.PolygonField(default='POLYGON EMPTY')
and I have the json of the link below: https://maps.googleapis.com/maps/api/geocode/json?address=Mountain+View,+CA&key=AIzaSyD3VO8vvIb1fAuDANRgI3XbpUslKktB0i4
The idea is to always search via pointfields from another model if a particular neighborhood is contained in the city. It would be something like Modelexample.objects.get(polygon__contains=Outromodel.point)
My big question is how to save the json data (node [Geometry][Bounds]) in polygonfield?