package org.telegram.telegrambots.meta.api.objects;

import com.fasterxml.jackson.annotation.JsonProperty;

import org.telegram.telegrambots.meta.api.interfaces.BotApiObject;

/**
 * @author Ruben Bermudez
 * @version 1.0
 * @brief This object represents a point on the map.
 * @date 20 of June of 2015
 */
public class Location implements BotApiObject {

    private static final String LONGITUDE_FIELD = "longitude";
    private static final String LATITUDE_FIELD = "latitude";

    @JsonProperty(LONGITUDE_FIELD)
    private Float longitude; ///< Longitude as defined by sender
    @JsonProperty(LATITUDE_FIELD)
    private Float latitude; ///< Latitude as defined by sender

    public Location() {
        super();
    }

    public Float getLongitude() {
        return longitude;
    }

    public Float getLatitude() {
        return latitude;
    }

    @Override
    public String toString() {
        return "Location{" +
                "longitude=" + longitude +
                ", latitude=" + latitude +
                '}';
    }
}

@@ -101,16 +101,103 @@
 perty;%0A%0A
+import lombok.AllArgsConstructor;%0Aimport lombok.Data;%0Aimport lombok.NoArgsConstructor;%0A
 import o
@@ -308,15 +308,8 @@
 0%0A *
- @brief
  Thi
@@ -354,37 +354,54 @@
 .%0A *
- @date 20 of June of 2015%0A */
+/%0A@Data%0A@NoArgsConstructor%0A@AllArgsConstructor
 %0Apub
@@ -618,21 +618,22 @@
 private 
-Float
+Double
  longitu
@@ -718,21 +718,22 @@
 private 
-Float
+Double
  latitud
@@ -773,375 +773,7 @@
 nder
-%0A%0A    public Location() %7B%0A        super();%0A    %7D%0A%0A    public Float getLongitude() %7B%0A        return longitude;%0A    %7D%0A%0A    public Float getLatitude() %7B%0A        return latitude;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return %22Location%7B%22 +%0A                %22longitude=%22 + longitude +%0A                %22, latitude=%22 + latitude +%0A                '%7D';%0A    %7D
 %0A%7D%0A

Update Location fields to Double to avoid roundings