Skip to content

Web services hazard calc doesn't allow Vs30 to be provided as floating point (integer only)

Hazard Disaggregation web service does allow Vs30 to be entered as either integer or floating point

Service Endpoint:

https://earthquake.usgs.gov/ws/nshmp/conus-2018/dynamic/hazard/-122.5/43.5/250.5?truncate=true&maxdir=false&imt=PGA&imt=SA0P2

Response:

{"message":"Bad Request","_links":{"self":{"href":"/ws/nshmp/conus-2018/dynamic/hazard/-122.5/43.5/250.5?truncate=true&maxdir=false&imt=PGA&imt=SA0P2","templated":false}},
"_embedded":{"errors":[{"message":"Failed to convert argument [vs30] for value [250.5] due to: For input string: \"250.5\"","path":"/vs30"}]}}
Edited by Andrew J. Makdisi