Skip to content

AnaArantesBarros/GeosenseAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeosenseAPI

API for NASA Space Apps Challenge 2023, created with Flask, and the JavaScript version of it (in progress) for future projects.


  • app.py: Flask API
  • api.js: JavaScript API
  • webScraping.py: Web scraping information about volcanoes
  • volcanoes.json: List of all active volcanoes with coordinates
  • api folder: API made in Next.js

The goal of this API is to unify geospatial data and provide information about terrain, temperatures, ultraviolet radiation (UV), earthquakes, and volcanoes. The information used in this API is from:

  • Volcanoes: volcano.si.edu
  • Earthquakes: seismicportal.eu
  • Temperatures and Precipitation: NASA Power
  • UV Index: openuv.io
  • Elevation: OpenTopoData

Sample API Usage Guide

Welcome to the Sample API Usage Guide! This repository contains documentation on how to interact with our API, including the API endpoint, available parameters, and example requests. Whether you're a developer or just curious to see what the API can do, this guide will help you get started.

API Endpoint

Available Parameters

Our API accepts the following parameters for customization:

  1. lon (number) - Longitude.
  2. lat (number) - Latitude.

How to Use the API

  1. Make a GET request to the API endpoint: https://geosense-api.vercel.app/api/
  2. Include the desired parameters in your request. You can pass them in the query string.
    • Example: https://geosense-api.vercel.app/api/lat,lon
  3. The API will respond with JSON data containing the requested information.

Example Requests

GET https://geosense-api.vercel.app/api/-22.9064,-47.0616