Open
Description
Requesting we add the location aliases to the location endpoint, something like:
curl -X 'GET' \
'https://wm.swt.ds.usace.army.mil:8243/swt-data/locations/CATO?office=SWT' \
-H 'accept: application/json;version=2'
Returns
{
"office-id": "SWT",
"name": "CATO",
"latitude": 36.20388889,
"longitude": -95.7066667,
"active": true,
"public-name": "Verdigris River near Catoosa, OK",
"long-name": "Verdigris River near Catoosa, OK",
"description": "Verdigris River near Catoosa, OK",
"timezone-name": "US/Central",
"location-kind": "STREAM_LOCATION",
"nation": "US",
"state-initial": "OK",
"county-name": "Rogers",
"nearest-city": "Catoosa, OK",
"horizontal-datum": "NAD83",
"published-longitude": 0,
"published-latitude": 0,
"vertical-datum": "NGVD29",
"elevation": 0,
"bounding-office-id": "SWT",
"elevation-units": "ft"
}
The catalog DOES return these aliases, but the catalog is very slow at the moment compared to the above endpoint:
curl -X 'GET' \
'https://cwms-data.usace.army.mil/cwms-data/catalog/LOCATIONS?office=SWT&like=CATO' \
-H 'accept: application/json;version=2'
{
"entries": [
{
"office": "SWT",
"name": "CATO",
"nearest-city": "Catoosa, OK",
"public-name": "Verdigris River near Catoosa, OK",
"long-name": "Verdigris River near Catoosa, OK",
"description": "Verdigris River near Catoosa, OK",
"kind": "STREAM_LOCATION",
"time-zone": "US/Central",
"latitude": 36.20388889,
"longitude": -95.7066667,
"published-latitude": 0,
"published-longitude": 0,
"horizontal-datum": "NAD83",
"elevation": 0,
"unit": "m",
"vertical-datum": "NGVD29",
"nation": "United States",
"state": "OK",
"county": "Rogers",
"bounding-office": "SWT",
"active": true,
"aliases": [
{
"name": "Agency Aliases-CWMS Standard Naming",
"value": "CATO"
},
{
"name": "Agency Aliases-NWS Handbook 5 ID",
"value": "CTOO2"
},
{
"name": "Agency Aliases-DCP Platform ID",
"value": "CE677A96"
},
{
"name": "Agency Aliases-CWMS Legacy Naming",
"value": "CATO"
},
{
"name": "Agency Aliases-USGS Station Number",
"value": "07178452"
}
]
}
],
"page-size": 500,
"total": 1
}
Metadata
Metadata
Assignees
Labels
No labels