@@ -0,0 +1,2388 @@
+/*%0A * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com)%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.traccar.client;%0A%0Aimport android.location.Location;%0A%0Aimport java.util.Date;%0A%0Apublic class Position %7B%0A%0A    public Location location; // DELME%0A%0A    public Position(String id, Location location, double battery) %7B%0A        this.location = location; // DELME%0A%0A        this.id = id;%0A        time = new Date(location.getTime());%0A        latitude = location.getLatitude();%0A        longitude = location.getLongitude();%0A        altitude = location.getAltitude();%0A        speed = location.getSpeed() * 1.943844; // speed in knots%0A        course = location.getBearing();%0A        this.battery = battery;%0A    %7D%0A%0A    private String id;%0A    public String getId() %7B return id; %7D%0A    public void setId(String id) %7B this.id = id; %7D%0A%0A    private Date time;%0A    public Date getTime() %7B return time; %7D%0A    public void setTime(Date time) %7B this.time = time; %7D%0A%0A    private double latitude;%0A    public double getLatitude() %7B return latitude; %7D%0A    public void setLatitude(double latitude) %7B this.latitude = latitude; %7D%0A%0A    private double longitude;%0A    public double getLongitude() %7B return longitude; %7D%0A    public void setLongitude(double longitude) %7B this.longitude = longitude; %7D%0A%0A    private double altitude;%0A    public double getAltitude() %7B return altitude; %7D%0A    public void setAltitude(double altitude) %7B this.altitude = altitude; %7D%0A%0A    private double speed;%0A    public double getSpeed() %7B return speed; %7D%0A    public void setSpeed(double speed) %7B this.speed = speed; %7D%0A%0A    private double course;%0A    public double getCourse() %7B return course; %7D%0A    public void setCourse(double course) %7B this.course = course; %7D%0A%0A    private double battery;%0A    public double getBattery() %7B return battery; %7D%0A    public void setBattery(double battery) %7B this.battery = battery; %7D%0A%0A%7D%0A

Create position model class