tags:

views:

93

answers:

3

i want to know if there is any online api for getting pressure and temperature of a location, if not, then i have height above sealevel (in meters and feet), how can i calculate that to get pressure and temperature of a location?

A: 
  1. Don't know if there is a free (as in beer) public API but there are many weather services that provides this data for a fee.
  2. Temperature and atmospheric pressure depends on the weather system, not on height, so you cannot calculate it with only "height above sealevel".

Edit:
Apparently Yahoo has a public API that includes both Temperature and Pressure.

Sani Huttunen
about your point 2: you can use a model like "International Standard Atmosphere" or "ICAO Standard Atmosphere", see http://en.wikipedia.org/wiki/International_Standard_Atmosphere
uvts_cvs
+3  A: 

You can check out this StackOverflow question about Best Weather API for your first question.

The current air pressure for a point is not a simple relationship between temperature and elevation. For a better understanding of air pressure see NOAA's brief tutorial on Air Pressure.

Do you want current atmospheric pressure for a weather station (surface level)? Do you want local altimeter (or pressure altitude) settings for various airports and locations?

I'm assuming you are asking for current (present) conditions, not forecast data.

Your question is vague, so without knowing how you wish to use the data I cannot infer more. I hope this helps point you in the right direction, or at least helps you better understand what you really want. Good luck.

mctylr
well im trying to google api and whenever user click on map, it will get sealevel and atmospheric pressure.im not sure which api to use, cause google dont provide pressure, yahoo does, but you cant access there api, unless you know woid (location id), cant use google map to get location id for yahoo api. other api has some restrictions too, do you know any api, where i can just pass coordinates and it will give me pressure and temperatures?
Basit
I don't believe you will find anyone that gives atmospheric pressure or pressure altitude (altimeter / altimeter setting) for an arbitrary point (i.e. latitude, longitude). I think that is what you are asking for.
mctylr
here i found one after lots of searching http://www.worldweatheronline.com/free-weather-feed.aspx, they give it.
Basit
A: 

for a model of atmosphere see "International Standard Atmosphere" or "ICAO Standard Atmosphere"

http://en.wikipedia.org/wiki/International_Standard_Atmosphere

uvts_cvs