openwisp / django-rest-framework-gis

Geographic add-ons for Django REST Framework. Maintained by the OpenWISP Project.
http://openwisp.org
MIT License
1.08k stars 200 forks source link

add support for return-geometry: true or false #236

Closed royarturo closed 4 years ago

royarturo commented 4 years ago

It would be nice if there is a property where I can dynamically decide if I want to include the geometry in the response.

nemesifier commented 4 years ago

Try with this: https://github.com/openwisp/django-rest-framework-gis#using-geometryserializermethodfield-as-geo_field

Closing because it's not a bug report. Feel free to ask more questions here.