2 * Copyright (c) 2010-2022 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.synopanalyzer.internal.synop;
15 import java.util.List;
17 import com.google.gson.annotations.SerializedName;
20 * The {@link StationDB} creates is a DTO for stations.json database.
22 * @author Gaƫl L'hopital - Initial Contribution
24 public class StationDB {
25 public class Station {
26 public String country;
28 @SerializedName("id_omm")
30 @SerializedName("numer_sta")
32 @SerializedName("usual_name")
33 public String usualName;
34 public double latitude;
35 public double longitude;
36 public double elevation;
37 @SerializedName("station_type")
38 public int stationType;
40 public String getLocation() {
41 return Double.toString(latitude) + "," + Double.toString(longitude);
45 public List<Station> stations;