Commit 65c59fbb by Raphael Lullis

More updates to README.

parent 5884cffd
......@@ -186,14 +186,14 @@ the appropiates classes to work with them. One such example is
`GeoPoint`, where you store latitude and longitude
~~~~~ {python}
from parse_rest.datatypes import Object
from parse_rest.datatypes import Object, GeoPoint
class Restaurant(Object):
pass
restaurant = Restaurant(name="Los Pollos Hermanos")
# coordinates as floats.
restaurant.location = parse_rest.GeoPoint(latitude=12.0, longitude=-34.45)
restaurant.location = GeoPoint(latitude=12.0, longitude=-34.45)
restaurant.save()
~~~~~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment