.. _geo:

Geo
===

.. module:: swingers.geo
   :synopsis: Swingers geometry toolset.

Swingers geometry toolset.


Geometry widgets
----------------

.. class:: GoldenEyeWidget

    A :class:`~django.forms.Textarea` that adds a GEO-selector to choose or
    create geometry within the form. To add this to a form::

        from swingers.geo.widgets import GoldenEyeWidget
        from django import forms

        class GeoForm(forms.Form):
            name = forms.CharField()
            the_geom = forms.CharField(widget=GoldenEyeWidget)

.. class:: GoldenEyeViewer

    A class that displays geographical data. Similar to
    :class:`GoldenEyeWidget`, except that it can be used outside of a form.
