Hey Tom,

On Mon, Oct 21, 2013 at 1:50 PM, Tom Christie <[email protected]> wrote:
> 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
>

This is EXACTLY what I was looking for. Obviously, I need to work on
my internet searching skills :/

Turns out things were fairly simple to do and I implemented what I
needed anyways, but this is obviously a bit cleaner so I will plug in
one of these. Essentially, a GeoJSON Serializer is what I was looking
for, and these give me exactly that :)

> 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
>

Yea, I saw their google forum link after I sent my mail here as well.
My apologies for not hunting enough before asking here.

Thanks again, and if folks from the django rest framework team are
reading this - you guys rock, it's been a pleasure to get into.

> Hope that helps!
>

Tremendously!
Thanks,
Sanjay


>   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.

-- 
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/CAG3W7ZHJ8WUhYVcitLkMM3DQa1GpoD6-%2BgG8%2BkfsFGFBq7NXzA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to