Coder Social home page Coder Social logo

django-geosimple's People

Contributors

angrylawyer avatar j4mie avatar maximilianhurl avatar nvlaarhoven avatar timstimpson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-geosimple's Issues

Using .filter with distance in a lookup_field

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.

Feature Request: Support for JOIN queries

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

Doesn't work with Django 1.9.3

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.