Wiki

Case Status
Log In

Wiki

 
List of API Calls»API Call - Weather - View Fore…
  • RSS Feed

Last modified on 4/17/2012 12:56 PM by User.

Tags:

API Call - Weather - View Forecast

Description:

This call is designed to produce the five-day weather forecast for a port.

Parameters:
format json, xml, html
port_id The port's ID

Call Format:

/api/weather/<port_id>.<format>

Example 1:

Input: http://www.findaport.com/api/weather/20.html
Output: An HTML page showing the five-day weather forecast for the port of Adelaide (Port ID for Adelaide = 20).

Output Fields:

Output fields Descriptions Examples
id Weather identifier for the requested port.  3079
location Location name Adelaide
country Country name Australia
continent Continent  Australasia
  The following fields are repeated for each day of the 5 day forecast  
day date= The date of the displayed weather information. 2012-01-01
day_weather Description of the weather. Light rain shower (Day)
day_weather_type An integer for the weather type.
This can be used to display an appropriate icon, such as found in the Reference Data
10
day_temp Temperature 22
night_weather Day number of the weather forecast.  
night_weather_type Maximum temperature in degree celsius.  
night_temp Minimum temperature in degree celsius.  

Output example:

Example Output

 

 

Previous API Call: Port - Version                                                                                                                    Return to API Call Summary


Need an API Key? Click here here for more details.

 

If you would like to find out more about Findaport.com or our Findaport API service, please contact us at info@portinfo.co.uk. Shipping Guides Ltd are recognised industry specialists in publishing port and harbour information for your various port entry requirements. For more information on our products, please visit www.portinfo.co.uk.