Skip to content

Instantly share code, notes, and snippets.

View aguynamedben's full-sized avatar

Ben Standefer aguynamedben

View GitHub Profile
{
"private": true,
"annotations": {
"venue": {
"profitable": "yes",
"owner": "China Basin Ballpark Corp."
},
"building": {
"size": "extra small",
"material": "wood",
>>> client.storage.get_nearby_ip_address('com.simplegeo.global.flickr', '173.164.219.53')
>>> client.storage.get_nearby('com.simplegeo.global.flickr', 37.765850, -122.437094, limit=1, radius=0.5)
>>> from simplegeo.models import Record
>>> r1 = Record('com.simplegeo.test', '7', 37.786521, -122.397850, \
'place', 1262304000, name = 'Chatz Coffee')
>>> r2 = Record('com.simplegeo.test', '8', 37.786274, -122.397513, \
'place', 1262304000, name = 'CBS Interactive')
>>> client.storage.add_records('com.simplegeo.test', [r1,r2])
>>> client.storage.get_history('com.simplegeo.test', 'andrew')
>>> client.storage.get_records('com.simplegeo.global.twitter',
['9073757897', '9073313347', '9073364877'])
>>> client.storage.get_record('com.simplegeo.global.twitter', 9073364877)
>>> client.storage.delete_record('com.simplegeo.test', '4')
>>> r = Record('com.simplegeo.test', '4', 37.786521, -122.397850,
'place', 1262304000, foo='bar')