The list below includes 8 Capital Cities in Australia and its WOEID as well as a IP Address for each in order for you can double-check the location with Maxmind.
Where On Earth Identifiers (WOEID) is provided by Yahoo! GeoPlanet. It’s a required paramater in calling Yahoo Weather API.
1. Australian Capital Territory
+ City: Canberra
+ WOEID: 1100968
+ Demo IP: 121.127.193.122
2. Queensland
+ City: Brisbane
+ WOEID: 1100661
+ Demo IP: 119.225.26.234
3. New South Wales
+ City: Sydney
+ WOEID: 1105779
+ Demo IP: 114.141.196.80
4. Victoria
+ City: Melbourne
+ WOEID: 1103816
+ Demo IP: 203.220.168.167
5. Western Australia
+ City: Perth
+ WOEID: 1098081
+ Demo IP: 202.65.69.104
6. South Australia
+ City: Adelaide
+ WOEID: 1099805
+ Demo IP: 182.239.144.66
7. Tasmania
+ City: Hobart
+ WOEID: 1102670
+ Demo IP: 203.52.130.136
8. Northern Territory
+ City: Darwin
+ WOEID: 1101597
+ Demo IP: 155.205.10.1
I need that information for my project which its workflow includes steps below:
- 1. Using PHP $_SERVER[‘REMOTE_ADDR’] to detect the current online IP Address of visitor
- 2. Using Maxmind GeoLite City database to find the current City where is he base on that IP Address
- 3. Calling to Where Yahoo API web service to get the WOEID for that city
- 4. Calling to Weather Yahoo API web service to get the Weather RSS Feed from that WOEID
Since my project just deploys in Australia so I need to collect all WOEID Of Eight Capital Cities in order to store in the database. In case my application can not detect the IP Address or the City from that IP hasn’t been updated yet, I will choose a WEOID in the list randomly to return as a default value.