Traditional Culture Encyclopedia - Weather inquiry - Find a line of weather forecast code (with reference station)

Find a line of weather forecast code (with reference station)

The URL sent to the website will automatically return the weather information of the city. Just reformatting this information.

Send: /weather.jsp? City = Guangzhou

Return trip: b4.gif^ Guangzhou Thundershower 26℃ ~ 22℃ Breeze UV: weak.

Send: /weather.jsp? City = Shanghai

Return: b3.gif^ Cloudy showers in Shanghai 16℃ ~ 13℃ Southeast wind UV: the weakest.

As for how to judge which city the visitor is, it is necessary to analyze its IP address before making a judgment. You can find an IP-to-city database on the Internet.