-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/** | ||
* https://waterservices.usgs.gov/rest/IV-Service.html | ||
* This API returns stream stages for US | ||
* @type {Object} | ||
* @name USGS | ||
* @memberof datasources | ||
*/ | ||
|
||
export default { | ||
"instant-values": { | ||
endpoint: "http://waterservices.usgs.gov/nwis/iv/", | ||
params: { | ||
// These are only written to aid users to know | ||
// what parameters are available | ||
format: null, | ||
site: null, | ||
stateCd: null, | ||
huc: null, | ||
countyCd: null, | ||
startDT: null, | ||
endDT: null, | ||
// and more... | ||
}, | ||
"data-fields": { | ||
// "output-data-field-1": null, | ||
// enter data field here | ||
}, | ||
methods:{ | ||
type: "json", | ||
method: "GET" | ||
} | ||
}, | ||
|
||
"daily-values": { | ||
endpoint: "http://waterservices.usgs.gov/nwis/dv/", | ||
params: { | ||
// These are only written to aid users to know | ||
// what parameters are available | ||
format: null, | ||
site: null, | ||
stateCd: null, | ||
huc: null, | ||
countyCd: null, | ||
startDT: null, | ||
endDT: null, | ||
// and more... | ||
}, | ||
"data-fields": { | ||
// "output-data-field-1": null, | ||
// enter data field here | ||
}, | ||
methods:{ | ||
type: "json", | ||
method: "GET" | ||
} | ||
}, | ||
|
||
"groundwater": { | ||
endpoint: "http://waterservices.usgs.gov/nwis/gwlevels/", | ||
params: { | ||
// These are only written to aid users to know | ||
// what parameters are available | ||
format: null, | ||
site: null, | ||
stateCd: null, | ||
huc: null, | ||
countyCd: null, | ||
startDT: null, | ||
endDT: null, | ||
// and more... | ||
}, | ||
"data-fields": { | ||
// "output-data-field-1": null, | ||
// enter data field here | ||
}, | ||
methods:{ | ||
type: "json", | ||
method: "GET" | ||
} | ||
}, | ||
|
||
requirements: { | ||
needProxy: true, | ||
requireskey: false, | ||
}, | ||
|
||
/* DATA SOURCE 2 */ | ||
|
||
/* DATA SOURCE ... */ | ||
}; | ||
|