Skip to content

Instantly share code, notes, and snippets.

@bmcculley
Created March 14, 2014 03:02
Show Gist options
  • Save bmcculley/9541424 to your computer and use it in GitHub Desktop.
Save bmcculley/9541424 to your computer and use it in GitHub Desktop.
An example proxy.php to get usgs.gov earthquake for use with jquake.
<?php
/**
* A proxy to get usgs.gov earthquake for use with jquake
* https://github.com/bmcculley/jquake
*
*/
$data = file_get_contents('http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson');
echo $data;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment