Created
June 15, 2012 16:10
-
-
Save philipdowner/2937316 to your computer and use it in GitHub Desktop.
USGS Plugin Example Usage
This file contains hidden or 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 | |
$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