Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'Services/SimpleGeo.php';
- $client = new Services_SimpleGeo('your-oauth-token', 'your-oauth-secret');
- $lat = 29.963003;
- $lon = -90.068192;
- try {
- $result = $client->getPlaces($lat, $lon);
- print_r($result);
- } catch (Services_SimpleGeo_Exception $e) {
- echo "ERROR: " . $e->getMessage() . " (#" . $e->getCode() . ")";
- }
- ?>
Add Comment
Please, Sign In to add comment