@hebcal/rest-api
    Preparing search index...

    Function locationToPlainObj

    • Converts a @hebcal/core Location to a plain, JSON-serializable object. Some fields (e.g. elevation, state, geonameid) are only present when the Location was constructed with that extra metadata attached (as done by GeoNames-backed location lookups).

      Parameters

      • location: Location | undefined

        the location to convert, or undefined

      Returns LocationPlainObj

      a plain object, or {geo: 'none'} if location is undefined