Geonames Webservices API

This demo shows how to call different GeoNames endpoints using a single PHP controller and display results dynamically.

Input Parameters

Latitude / Longitude
Weather Bounding Box

Available Endpoints

API Names Description Action
/countryCode http://api.geonames.org/countryCodeJSON?formatted=true&lat=____&lng=____&username=saadalix&style=full
/timezone http://api.geonames.org/timezoneJSON?formatted=true&lat=____&lng=____&username=saadalix&style=full
/weather http://api.geonames.org/weatherJSON?formatted=true&north=____&south=____&east=____&west=____&username=saadalix&style=full

Results

Click on submit to ses the results

Country Code Results
Country:
Country Code:
Languages:
Timezone Results
Timezone:
Current Time:
Sunrise:
Sunset:
Weather Results
Temperature:
Clouds:
Humidity:
Wind Speed: