Guest User

Untitled

a guest
Jul 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2.  
  3. require_once 'Services/SimpleGeo.php';
  4.  
  5. $client = new Services_SimpleGeo('your-oauth-token', 'your-oauth-secret');
  6.  
  7. $lat = 29.963003;
  8. $lon = -90.068192;
  9.  
  10. try {
  11. $result = $client->getPlaces($lat, $lon);
  12. print_r($result);
  13. } catch (Services_SimpleGeo_Exception $e) {
  14. echo "ERROR: " . $e->getMessage() . " (#" . $e->getCode() . ")";
  15. }
  16.  
  17. ?>
Add Comment
Please, Sign In to add comment