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
- Host: GitHub
- URL: https://github.com/mwoss/closest-earthquakes
- Owner: mwoss
- Created: 2019-02-26T22:09:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-10T14:07:49.000Z (over 7 years ago)
- Last Synced: 2025-01-24T08:23:56.273Z (over 1 year ago)
- Topics: api, earthquakes, python, script
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```