Geo support with Django Rest Framework
Hi all,
I'm developing an app using GeoDjango that requires me to create an
API. Ideally, I would output GeoJSON at various API end-points and
support a few geo-queries like "within bounding box", etc.
I have done something similar before without Django Rest Framework and
just writing vanilla views, but I thought it would be nice to make use
of a lot of the niceties that the framework provides.
Just wondering if something has dealt with serialization /
deserialization of geo models using Django Rest Framework and has any
pointers / code to share (or advice on why this is a bad idea :)). A
fair amount of internet searching did not turn up anything for me.
Looking through the docs, it seems like there are reasonable hooks to
write custom Serializer, Renderer and Filter classes - just wondering
if someone has gone down this road before - and also, potentially, if
someone else may find this useful and then I could think about making
whatever solution I come up with more generalizable ..
Also, if there's a better place to discuss this, please let me know :)
Thanks,
Sanjay
--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG3W7ZGWuikBcD1AqqSWwtE0a-wF0PoGt0qXrA5nRPbcDYFHyw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home