dabapps / django-geosimple Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED/NO LONGER MAINTAINED
DEPRECATED/NO LONGER MAINTAINED
Hi folks, i have a Profile model related with the default User, so i can add a lat and long field in the User model. There are any way to search it through the User model, something like:
User.objectis.filter(profile__latitude_and_longitude__nearby=(48.8, 2.2, 10))
Because i cant use the .nearby
manager in the User model.
Thanks in advance.
I am trying to run this query
queryset = models.Company.objects
queryset = queryset.filter(addresses__location__approx_distance_lt=((latitude, longitude), radius))
but I am getting the following error
FieldError: Unsupported lookup 'approx_distance_lt' for GeohashField or join on the field not permitted.
Additionally it's important that annotation of the distance still works on the returned results
I'm thinking about use this package but i don't know if relatively small means 50, 100, 1000, 10000, etc results...
Thanks in advance :).
The following error is thrown when a filtering by distance is done (in Django 1.9.3):
16
17 def _clone(self, klass=None, setup=False, **kw):
---> 18 c = super(GeoQuerySet, self)._clone(klass, setup, **kw)
19 c._postprocess = copy(self._postprocess)
20 return c
TypeError: _clone() takes exactly 1 argument (3 given)
Since _clone
signature changed in the QuerySet
class in Django 1.9.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.