|
Hi,
I tested this by hand...
If you call for 'http://xoap.weather.com/search/search?where=New%20York%2FCentral%20Park%2C%20NY' this would be the perfectly URL encoded string to search for 'New York/Central Park, NY'.
BUT, this does not return any result. Only an empty search message. Seems that this is a problem with the XOAP server on weather.com's side.
I'll implement following workaround with the next release:
For now, if one searches for a location 'New York' the location cache stores the following hash:
$locations = {
'New York' => [
"USNY0996", # New York, NY
"USNY0998", # New York/Central Park, NY
"USNY0999", # New York/JFK Intl Arpt, NY
"USNY1000", # New York/La Guardia Arpt, NY
],
}
With 0.4 this should be
$locations = {
'New York' => [
"USNY0996", # New York, NY
"USNY0998", # New York/Central Park, NY
"USNY0999", # New York/JFK Intl Arpt, NY
"USNY1000", # New York/La Guardia Arpt, NY
],
'New York, NY' => [
"USNY0996", # New York, NY
],
'New York/Central Park, NY' => [
"USNY0998", # New York/Central Park, NY
],
'New York/JFK Intl Arpt, NY' => [
"USNY0999", # New York/JFK Intl Arpt, NY
],
'New York/La Guardia Arpt, NY' => [
"USNY1000", # New York/La Guardia Arpt, NY
],
}
This will cause any search for 'New York/La Guardia Arpt, NY' after having once searched for 'New York' to work.
Thomas
|