An open API service indexing awesome lists of open source software.

https://github.com/mwoss/closest-earthquakes

Console script for finding out most nearby earthquakes for the given coordinates
https://github.com/mwoss/closest-earthquakes

api earthquakes python script

Last synced: over 1 year ago
JSON representation

Console script for finding out most nearby earthquakes for the given coordinates

Awesome Lists containing this project

README

          

# nearby-earthquakes

Console script for finding out 10 most nearby earthquakes for the given coordinates (earthquakes that happened in the closest proximity of those coordinates) that happened during last 30 days.

## Example usage:

Example Input:
```
python nearby_earthquakes.py 40.730610 -73.935242
```

Example Output:
```
M 1.3 - 2km SSE of Contoocook, New Hampshire || 331
M 1.3 - 2km ENE of Belmont, Virginia || 354
M 2.4 - 83km ESE of Nantucket, Massachusetts || 406
M 1.3 - 13km ENE of Barre, Vermont || 410
M 0.7 - 18km NW of Norfolk, New York || 476
M 2.0 - 17km NW of Norfolk, New York || 476
M 1.7 - 19km NNW of Beaupre, Canada || 758
M 1.9 - 13km SW of La Malbaie, Canada || 814
M 2.4 - 16km N of Lenoir, North Carolina || 840
M 2.4 - 12km ESE of Carlisle, Kentucky || 896
```