Hi Sanjay,

I would take a look at these two repos:

https://github.com/dmeehan/django-rest-framework-gis
https://github.com/mjumbewu/django-rest-framework-gis

You might also try searching the REST framework issue list as it's likely 
either or both of these were at some point discussed there.
Also try searching the archives for the REST framework discussion group, 
here:

https://groups.google.com/forum/#!forum/django-rest-framework

Hope that helps!

  Tom

On Sunday, 20 October 2013 15:06:26 UTC+1, Sanjay Bhangar wrote:
>
> 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 [email protected].
To post to this group, send email to [email protected].
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/71f87a56-b0ff-4ff7-9d4c-b47f4bb525f3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to