@Longitude()

New in 2.0

Generate longitude values

Geographic InformationSince 2.0.0

Parameters

NameTypeRequiredDefaultDescription
minLngMin longitude (-180)
maxLngMax longitude (+180)
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

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