Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geo-spatial backend #11

Open
barseghyanartur opened this issue Aug 25, 2019 · 5 comments
Open

Geo-spatial backend #11

barseghyanartur opened this issue Aug 25, 2019 · 5 comments
Labels
enhancement New feature or request help appreciated Help appreciated
Milestone

Comments

@barseghyanartur
Copy link
Owner

No description provided.

@barseghyanartur barseghyanartur added this to the 0.2 milestone Aug 25, 2019
@barseghyanartur barseghyanartur added enhancement New feature or request help appreciated Help appreciated labels Aug 25, 2019
@barseghyanartur barseghyanartur modified the milestones: 0.2, 0.4, 0.3 Sep 3, 2019
@barseghyanartur barseghyanartur modified the milestones: 0.3, 0.4, 0.6, 0.7 Sep 18, 2019
@barseghyanartur barseghyanartur modified the milestones: 0.7, 0.8 Oct 10, 2019
@cjfd481980
Copy link

Hi @barseghyanartur, I would like tou help out on this feature. What should I do?

@barseghyanartur
Copy link
Owner Author

barseghyanartur commented Feb 18, 2021

@cjfd481980:

First part

  1. Fork.
  2. Study geo-distance.
  3. Implement it as a filter backend.
  4. Write tests.
  5. Submit a PR.

Second part

  1. Implement the ordering.

@cjfd481980
Copy link

Ok, have you make any progress to start with?

@barseghyanartur
Copy link
Owner Author

barseghyanartur commented Feb 18, 2021

Not in this project, but this feature is implemented in django-elasticsearch-dsl-drf.

@barseghyanartur barseghyanartur modified the milestones: 0.8, 0.9 Mar 16, 2021
@cjfd481980
Copy link

cjfd481980 commented Apr 24, 2021

Hi @barseghyanartur I was able to resolve a GeoPoint as a InnerDoc, perhaps it could help as starting point

class Place(InnerDoc):
    lat = Float()
    lon = Float()

class User(Document):
    location=Object(Place)

that's how I saw django_elasticsearch_dsl.fields.GeoPointField saves a Point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help appreciated Help appreciated
Projects
None yet
Development

No branches or pull requests

2 participants