Skip to content

Instantly share code, notes, and snippets.

@philipdowner
Created June 15, 2012 16:10
Show Gist options
  • Save philipdowner/2937316 to your computer and use it in GitHub Desktop.
Save philipdowner/2937316 to your computer and use it in GitHub Desktop.
USGS Plugin Example Usage
<?php
$rivers_desired = array('jefferson', 'madison', 'bighole', 'beaverhead', 'ruby'); //Create an array of desired rivers
$rivers = usgs_fetch_sites($rivers_desired); //Fetch a list of site identifiers
$dataparameters = usgs_fetch_dataParameters(); //The codes for the measurements you're interested in
$river_data = usgs_fetch_riverData($rivers,$dataparameters); //Make the call to the USGS server
echo usgs_display_RiverData($river_data, 'true'); //Display each river's data along with a Google map
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment