2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.weatherunderground.internal.json;
18 * The {@link WeatherUndergroundJsonLocation} is the Java class used
19 * to map the entry "location" from the JSON response to a Weather
20 * Underground request.
22 * @author Laurent Garnier - Initial contribution
24 public class WeatherUndergroundJsonLocation {
26 // Commented members indicate properties returned by the API not used by the binding
29 private String country;
30 private String country_iso3166;
31 private String country_name;
34 private String tz_short;
35 private String tz_long;
42 private String requesturl;
43 private String wuiurl;
44 // private Object nearby_weather_stations;
46 public WeatherUndergroundJsonLocation() {
49 public String getType() {
53 public String getCountry() {
57 public String getCountryIso3166() {
58 return country_iso3166;
61 public String getCountryName() {
65 public String getState() {
69 public String getCity() {
73 public String getTzShort() {
77 public String getTzLong() {
81 public String getLat() {
85 public String getLon() {
89 public String getZip() {
93 public String getMagic() {
97 public String getWmo() {
101 public String getL() {
105 public URL getRequesturl() {
106 return WeatherUndergroundJsonUtils.getValidUrl(requesturl);
109 public URL getWuiurl() {
110 return WeatherUndergroundJsonUtils.getValidUrl(wuiurl);