problem with taiwan city names

  • 1
  • Question
  • Updated 4 years ago
I need to know the taiwan city names.

$json_string = file_get_contents("http://api.wunderground.com/api/ my key /forecast10day/q/TW/Taiwan.json");

I found out all cities in taiwan.
but I couldn't match some cities names.

how to recognize the city names?

ex) http://www.weather.com/weather/tenday...
Chang-hua, Taiwan
Photo of sampark

sampark

  • 2 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
You could reclaim a clean city list using the autocomplete API in a loop for your cities list, see the response for example using the city you mentioned about
http://autocomplete.wunderground.com/...

See http://www.wunderground.com/weather/a... for full documentation
Photo of sampark

sampark

  • 2 Posts
  • 0 Reply Likes
thank you
but how about this : New Taipei City

http://www.weather.com/weather/today/...

http://autocomplete.wunderground.com/...
is it right?