Function randomAddressLine

  • Example function that generates a random but plausible address line for a given location.

    Parameters

    • Optional location: string

      The location to generate the address line for. If no location is provided, a general address line is generated.

    Returns Promise<undefined | string>

    A string representing the generated address line.

    Example

    await randomAddressLine('Paris') // => '1 rue de Rivoli'
    await randomAddressLine() // => '1234 Elm Street'

Generated using TypeDoc