longitude function

double longitude()

Return the longitude of a randomly generated address.

Returns: The longitude of the address generared.

Implementation

double longitude() {
  final randomAddress = address();
  if (randomAddress.coordinates?.longitude == null) {
    return longitude();
  }
  return randomAddress.coordinates!.longitude!;
}