From 53a2c9f9d09e1ec9daa09c44d7a5e0aa718b22b7 Mon Sep 17 00:00:00 2001 From: BGbaderguet <48762010+BGbaderguet@users.noreply.github.com> Date: Tue, 29 Dec 2020 18:20:24 +0100 Subject: [PATCH] Changing type of latitude and longitude --- .../vj/apps/myrealestateagency/entities/Property.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/fr/romanet/vj/apps/myrealestateagency/entities/Property.java b/app/src/main/java/fr/romanet/vj/apps/myrealestateagency/entities/Property.java index 1e41e71..1d3a6db 100644 --- a/app/src/main/java/fr/romanet/vj/apps/myrealestateagency/entities/Property.java +++ b/app/src/main/java/fr/romanet/vj/apps/myrealestateagency/entities/Property.java @@ -31,10 +31,10 @@ public class Property { public String address; @ColumnInfo(name = "longitude") - public long longitude; + public double longitude; @ColumnInfo(name = "latitude") - public long latitude; + public double latitude; @Embedded public PropertyStatue propertyStatue; @@ -45,7 +45,7 @@ public class Property { @ColumnInfo(name = "belongs_agency_id", index = true) public int belongsToAgencyId; - public Property(String description, String address, long longitude, long latitude, int belongsToAgencyId) + public Property(String description, String address, double longitude, double latitude, int belongsToAgencyId) { propertyId = 0; this.description = description;