This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> client.get_nearby('com.simplegeo.global.flickr', 37.765850, -122.437094, limit=1, radius=0.5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
'type':'FeatureCollection', | |
'features':[ | |
{ | |
'distance':41.224616104598255, | |
'created':1284841637, | |
'geometry':{ | |
'type':'Point', | |
'coordinates':[ | |
-122.436684, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> client.get_nearby_geohash('com.simplegeo.global.flickr', '9q8y') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$testRecord->foo = 'bar'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO: Open of `sflnds_parks.shp' | |
using driver `ESRI Shapefile' successful. | |
Layer name: sflnds_parks | |
Geometry: Polygon | |
Feature Count: 211 | |
Extent: (5978809.933564, 2086033.360837) - (6020988.384564, 2123615.899837) | |
Layer SRS WKT: | |
PROJCS["NAD_1983_StatePlane_California_III_FIPS_0403_Feet", | |
GEOGCS["GCS_North_American_1983", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Services/SimpleGeo.php'; | |
$client = new Services_SimpleGeo('your-oauth-token', 'your-oauth-secret'); | |
$south = 42.4166 // Grosse Pointe Farms | |
$west = -82.9189 // Harper Woods | |
$north = 42.4465 // Grosse Pointe Woods | |
$east = -82.8753 // Grosse Pointe Shores |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
$result = $client->getOverlaps($south, $west, $north, $east); | |
print_r($result); | |
} catch (Services_SimpleGeo_Exception $e) { | |
echo "ERROR: " . $e->getMessage() . " (#" . $e->getCode() . ")"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Require the PEAR client library. No other requires are needed. | |
require_once 'Services/SimpleGeo.php'; | |
// If you log into SimpleGeo and click on Account you'll see | |
// your OAuth token and secret. | |
$client = new Services_SimpleGeo('your-oauth-token', | |
'your-oauth-secret'); |