Skip to content

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

Notifications You must be signed in to change notification settings

jhowbhz/weather-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

$.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

$.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)
  }
}) 

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages