@Latitude()

New in 2.0

Generate latitude values

Geographic InformationSince 2.0.0

Parameters

NameTypeRequiredDefaultDescription
minLatMin latitude (-90)
maxLatMax latitude (+90)
scaleDecimal precision
nullSamplerThe null ratio, such as "1:2", indicates that generating a random value 3 times with an average of 1 time is null

Usage

@Latitude(arg0,arg1,arg2,arg3)

Generate latitude with specified parameters

Example:
@Latitude(30,60,5,1:2)
Output:
40.336546
@Latitude(arg0)

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
← Back to Function Reference