Friday, November 25, 2016

Mysql GeoDjango Distance search

Is there any pure Django/faster way to get the distances less than x km. I have the model

class Products(models.Model):      title = models.CharField(max_length=10)      point = models.PointField(srid=32140, null=True, blank=True)

So I want to search the products less than x km from the persons view in mysql.? Because distance less than is only supported in postgresql. I want to do in mysql database. Thanks

Could anyone help please ?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b914da61-bffc-4591-98d3-84d919420764%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment