Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ it:

- This enables the following simple API::

>>> from geoposition import Geoposition
>>> from myapp.models import PointOfInterest
>>> poi = PointOfInterest.objects.get(id=1)
>>> poi = PointOfInterest.objects.create(name='Foo', position=Geoposition(52.522906, 13.41156))
>>> poi.position
Geoposition(52.522906,13.41156)
Geoposition(52.522906, 13.41156)
>>> poi.position.latitude
52.522906
>>> poi.position.longitude
Expand Down