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

https://github.com/jhowbhz/weather-api

Weather for Lat Long IP (Previsão do tempo por latitude e longitude)
https://github.com/jhowbhz/weather-api

api-free python restful-api

Last synced: about 1 year ago
JSON representation

Weather for Lat Long IP (Previsão do tempo por latitude e longitude)

Awesome Lists containing this project

README

          

# API Doc
### Weather for Lat Long IP (Previsão do tempo por latitude e longitude)
Is a simple API develop in PYTHON and Flask, to integration in OpenWeatherMap for free user :)
## Climate for city and state
get temperature and climate for city and state

``GET : https://weather.contrateumdev.com.br/api/weather/city/?city=Belo%20Horizonte,minas%20gerais``


## Climate for latitude longitude
get temperature and climate for latitude longitude

``GET : https://weather.contrateumdev.com.br/api/weather?lat=-19.8218131&lon=-44.0094874``


### Example city JS

```javascript
$.post({
method: 'GET',
url: `https://weather.contrateumdev.com.br/api/weather/city/?city=Belo%20Horizonte,minas%20gerais`,
contentType:"application/json; charset=utf-8",
dataType:"json",
success: function(resultado, status, xhr) {
console.log(resultado)
}
})
```

### Example lat & lon JS

```javascript
$.post({
method: 'GET',
url: `https://weather.contrateumdev.com.br/api/weather/api/weather?lat=-19.8218131&lon=-44.0094874`,
contentType:"application/json; charset=utf-8",
dataType:"json",
success: function(resultado, status, xhr) {
console.log(resultado)
}
})

```