Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
testLatitude
Method · 0.80
Calls
2
nextDouble
Method · 0.80
random
Method · 0.45
Tested by
1
testLatitude
Method · 0.64