Skip to Content

hôtel choisi

  1. client2=context.Client('votre code OAUTHKEY', 'votre code SECRET')
  2. essai=client.get_feature('SG_47XBr8HAPbh7yFrsnpHURX_37.788269_-122.401510@1293134755').to_dict()
  3. print essai
  4. {'geometry': {'type': 'Point', 'coordinates': (Decimal('-122.401619'), Decimal('37.788213'))},
  5. 'type': 'Feature',
  6. 'id': 'SG_47XBr8HAPbh7yFrsnpHURX_37.788269_122.401510@1293134755',
  7. 'properties': {'website': 'www.sfpalace.com', 'city': 'San Francisco',
  8. 'name': 'Palace Hotel',
  9. 'tags': ['operation', 'eating'], 'country': 'US', 'private': False, 'phone': '+1 415 512 1111', 'state': 'CA',
  10. 'href': 'http://api.simplegeo.com/1.0/features/SG_47XBr8HAPbh7yFrsnpHURX_37.788269_-122.401510@1293134755.json',
  11. 'postcode': '94105',
  12. 'address': '2 New Montgomery St', 'owner': 'simplegeo', 'classifiers': [{'category': 'Travel', 'type': 'Entertainment', 'subcategory': 'Hotels & Motels'}]}}