2 * Copyright (c) 2010-2024 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.netatmo.internal.api.dto;
15 import java.util.Optional;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
21 * The {@link Place} reports location information of a Netatmo system.
23 * @author Gaƫl L'hopital - Initial contribution
28 public class Place implements LocationEx {
29 private @Nullable String city;
30 private @Nullable String country;
31 private @Nullable String timezone;
32 private double altitude;
33 private double[] location = {};
35 public Optional<String> getCity() {
36 return Optional.ofNullable(city);
40 public Optional<String> getCountry() {
41 return Optional.ofNullable(country);
45 public Optional<String> getTimezone() {
46 return Optional.ofNullable(timezone);
50 public double getAltitude() {
55 public double[] getCoordinates() {