@Longitude()
New in 2.0Generate longitude values
Geographic InformationSince 2.0.0
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| minLng | — | — | Min longitude (-180) | |
| maxLng | — | — | Max longitude (+180) | |
| scale | — | — | Decimal precision | |
| nullSampler | — | — | The null ratio, such as "1:2", indicates that generating a random value 3 times with an average of 1 time is null |
Usage
@Longitude(arg0,arg1,arg2,arg3)Generate longitude with specified parameters
Example:
@Longitude(30,60,5,1:2)
Output:
40.336546@Longitude(arg0)Generate longitude with default bounds and nullWeight (e.g. 2:8)
Example:
@Longitude(2:8)
Output:
90.232121null@Longitude()Generate random longitude
Example:
@Longitude()
Output:
90.232121