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).
@hebcal/core
Location
elevation
state
geonameid
the location to convert, or undefined
undefined
a plain object, or {geo: 'none'} if location is undefined
{geo: 'none'}
location
Converts a
@hebcal/coreLocationto a plain, JSON-serializable object. Some fields (e.g.elevation,state,geonameid) are only present when theLocationwas constructed with that extra metadata attached (as done by GeoNames-backed location lookups).