MCPcopy Create free account
hub / github.com/DiUS/java-faker / latitude

Method latitude

src/main/java/com/github/javafaker/Address.java:86–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 }
85
86 public String latitude() {
87 return String.format("%.8g", (faker.random().nextDouble() * 180) - 90);
88 }
89
90 public String longitude() {
91 return String.format("%.8g", (faker.random().nextDouble() * 360) - 180);

Callers 1

testLatitudeMethod · 0.80

Calls 2

nextDoubleMethod · 0.80
randomMethod · 0.45

Tested by 1

testLatitudeMethod · 0.64