Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Commit

Permalink
refactor(qibla): replace float with double because of unintentional r…
Browse files Browse the repository at this point in the history
…ounding
  • Loading branch information
Michael Oberwasserlechner committed Jun 1, 2017
1 parent 011e0e6 commit 648ece9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class JOpenCageAnnotations {

private String wikidata;

private Float qibla;
private Double qibla;

private JOpenCageSun sun;

Expand Down Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/byteowls/jopencage/GeoCoderTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 648ece9

Please sign in to comment.