This demo shows how to call different GeoNames endpoints using a single PHP controller and display results dynamically.
| 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
|
Click on submit to ses the results
| Country: | |
| Country Code: | |
| Languages: |
| Timezone: | |
| Current Time: | |
| Sunrise: | |
| Sunset: |
| Temperature: | |
| Clouds: | |
| Humidity: | |
| Wind Speed: |