]> git.basschouten.com Git - openhab-addons.git/blob
ee46dd372ce43aa614363f4a50e8241310a9abd0
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.bmwconnecteddrive.internal.dto.status;
14
15 import org.openhab.binding.bmwconnecteddrive.internal.utils.Constants;
16
17 /**
18  * The {@link Position} Data Transfer Object
19  *
20  * @author Bernd Weymann - Initial contribution
21  */
22 public class Position {
23     public float lat;// ": 46.55605,
24     public float lon;// ": 10.495669,
25     public int heading;// ": 219,
26     public String status;// ": "OK"
27
28     public String getCoordinates() {
29         return new StringBuilder(Float.toString(lat)).append(Constants.COMMA).append(Float.toString(lon)).toString();
30     }
31
32     @Override
33     public String toString() {
34         return getCoordinates();
35     }
36 }