Function default

  • Produces an array of nostr g (geo) tag arrays based on input geo data and options.

    Parameters

    • input: null | InputData

      The input data for generating tags.

    • Optional opts: Options

      Optional parameters to customize tag generation.

    Returns GeoTags[]

    An array of generated tags.

    This function is the primary entry point for generating an array of nostr g (geo) tag arrays. It validates the input data, applies default options if not provided, and invokes the tag generation process. The options can control the inclusion of various geotags like GPS, ISO-3166 country codes, city names, etc. The function can also deduplicate and sort the tags.

    If the input data is null, an error is thrown. The input must be an object.

    Throws

    Throws an error if the input data is null or not an object.