@Latitude()
New in 2.0Generate latitude values
GeographicSince 2.0.0
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| minLat | Double | — | -90 | Min latitude (-90) |
| maxLat | Double | — | 90 | Max latitude (+90) |
| scale | Integer | — | 6 | Decimal precision |
| nullSampler | String | — | — | The null ratio, such as "1:2", indicates that generating a random value 3 times with an average of 1 time is null |
Usage
@Latitude(nullWeight)Generate latitude with default bounds and nullWeight (e.g. 2:8)
Example:
@Latitude(2:8)
Output:
40.336546null@Latitude()Generate random latitude
Example:
@Latitude()
Output:
90.232121@Latitude(minLat,maxLat,scale,nullWeight)Generate latitude with specified parameters
Example:
@Latitude(30,60,5,1:2)
Output:
40.336546