2 * Copyright (c) 2010-2021 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.bmwconnecteddrive.internal.dto.status;
15 import org.openhab.binding.bmwconnecteddrive.internal.utils.Constants;
18 * The {@link Position} Data Transfer Object
20 * @author Bernd Weymann - Initial contribution
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"
28 public String getCoordinates() {
29 return new StringBuilder(Float.toString(lat)).append(Constants.COMMA).append(Float.toString(lon)).toString();
33 public String toString() {
34 return getCoordinates();