Data can be obtained using any program supporting the HTTP-GET (e.g. your favourite web browser) or -POST method (e.g. CURL).
Examples with HTTP-GET method:
Examples with HTTP-POST method:
curl -X POST -F "message=@path/to/token.txt" "https://esm-db.eu/esmws/rexel-bmse-values/1/query?latitude=38.917&longitude=16.585&return_period=500" -o outputfile-bmse-values.jsonHTTP-POST variables (required)
| Option | Description |
|---|---|
| message | The clearsign token obtained from the generate-signed-message authentication webservice or from EIDA authentication webpage. |
NOTE: Windows OS could require the option '--ssl-no-revoke'
| Option | Description | Default |
|---|---|---|
| latitude | Latitude value in decimal degrees (valid for Italian sites only). | 40.8279365 |
| longitude | Longitude value in decimal degrees (valid for Italian sites only). | 14.1857001 |
| return_period | Each entered value is rounded to the nearest return period among those for which the Italian hazard map is defined (475,975,2475) | 475 |
| tolerance_magnitude | Tolerance +/- for magnitude | 0.75 |
| tolerance_epidistance | Tolerance +/- for epicentral distance (km) | 10 |
| indent | {true,false} Prettifies output setting a 4 spaces indentation style. Valid only in combination with 'json' format | false |
Backend Python software used by this web service is developed and maintained by Felicetta C. and Russo E.