• Creates a valid EventMetadata.

    Parameters

    • input: EventOptions

      Use your IDE suggestions for an enhanced development experience

    Returns EventMetadata

    Example

    With GPS coordinates:

    const metadata = event({
    location: 'The Moon',
    position: geoUri({
    lat: 40.6892,
    lng: -74.0444,
    }),
    startsAt: '2028-10-01T00:00:00Z',
    endsAt: '2028-10-01T01:00:00Z',
    links: ['https://example.com/tickets.html'],
    });

    Example

    With a physical address:

    const metadata = event({
    location: 'The Moon',
    address: {
    streetAddress: '1st Street',
    locality: 'New York',
    region: 'NY',
    postalCode: '10001',
    country: 'US',
    },
    startsAt: '2028-10-01T00:00:00Z',
    endsAt: '2028-10-01T01:00:00Z',
    });