diff --git a/src/main/java/com/byteowls/jopencage/model/JOpenCageAnnotations.java b/src/main/java/com/byteowls/jopencage/model/JOpenCageAnnotations.java index cb70648..967fb39 100644 --- a/src/main/java/com/byteowls/jopencage/model/JOpenCageAnnotations.java +++ b/src/main/java/com/byteowls/jopencage/model/JOpenCageAnnotations.java @@ -57,7 +57,7 @@ public class JOpenCageAnnotations { private String wikidata; - private Float qibla; + private Double qibla; private JOpenCageSun sun; @@ -154,7 +154,7 @@ public String getWikidata() { /** * Decimal degrees clockwise from true north to turn to point to the Kaaba (21.4225,39.8262). Calculated using the great circle method. */ - public Float getQibla() { + public Double getQibla() { return qibla; } diff --git a/src/test/java/com/byteowls/jopencage/GeoCoderTests.java b/src/test/java/com/byteowls/jopencage/GeoCoderTests.java index 9f854cd..0417817 100644 --- a/src/test/java/com/byteowls/jopencage/GeoCoderTests.java +++ b/src/test/java/com/byteowls/jopencage/GeoCoderTests.java @@ -104,7 +104,7 @@ public void testQiblaAnnotation() { Assert.assertNotNull(response); for (JOpenCageResult r : response.getResults()) { - Float qibla = r.getAnnotations().getQibla(); + Double qibla = r.getAnnotations().getQibla(); Assert.assertNotNull(qibla); Assert.assertTrue(qibla >= 0 && qibla <= 360); }