Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save aguynamedben/893416 to your computer and use it in GitHub Desktop.

Select an option

Save aguynamedben/893416 to your computer and use it in GitHub Desktop.
>>> from simplegeo import Client
>>> from simplegeo.models import Feature
>>> client = Client('your-oauth-token', 'your-oauth-secret')
>>> properties = {"province":"CA","city":"San Francisco","name":"SimpleGeo SF", \\
"country":"US", "phone":"+1 415 626 1375","address":"41 Decatur St", \\
"postcode":"94103"}
>>> f = Feature((37.772392, -122.405752), properties=properties)
>>> client.places.add_feature(f)
'SG_5uZpvipNjVaSbbDv5bvZaa_37.772392_-122.405752@1291847366'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment