Weather Portlet
  1. Weather Portlet
  2. WPT-57

Location Code Not Found In World Weather Online API Call

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.9, 1.1.0
    • Component/s: None
    • Labels:
      None

      Description

      The location code for London, UK is being generated in such a way that the World Weather Online service can't find it and returns a city not found error message. This is due to the World Weather Online Add City search for London returning a data object with the Region set to "City Of London, Greater London", which subsequently causes the location code to be "London, City Of London, Greater London, United Kingdom".

      Ex: API Call - Not Found
      http://free.worldweatheronline.com/feed/weather.ashx?key=<YOURKEYHERE>&num_of_days=3&format=xml&q=London%2C+City+Of+London%2C+Greater+London%2C+United+Kingdom

      Ex: API Call - Found
      http://free.worldweatheronline.com/feed/weather.ashx?key=<YOURKEYHERE>&num_of_days=3&format=xml&q=London%2C+United+Kingdom

        Activity

        Hide
        Brad Leege added a comment -

        Submitted code back to JASIG GitHub via Pull Request 6.

        https://github.com/Jasig/WeatherPortlet/pull/6

        Show
        Brad Leege added a comment - Submitted code back to JASIG GitHub via Pull Request 6. https://github.com/Jasig/WeatherPortlet/pull/6

          People

          • Assignee:
            Unassigned
            Reporter:
            Brad Leege
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: