6.0.0 • Published 5 years ago
@datafire/neowsapp v6.0.0
@datafire/neowsapp
Client library for NeoWs - (Near Earth Object Web Service)
Installation and Usage
npm install --save @datafire/neowsapp
let neowsapp = require('@datafire/neowsapp').create();
.then(data => {
console.log(data);
});
Description
A web service for near earth objects. All the data is from the NASA JPL Asteroid team.
NeoWs is proud to power AsteroidTracker on iOS and Android as well as related apps.
Follow us on Twitter
Actions
retrieveNearEarthObjectFeed
Get a list of Near Earth Objects within a date range, The max range in one query is 7 days
neowsapp.retrieveNearEarthObjectFeed({}, context)
Input
- input
object
- start_date
string
: Start of date range search, format: yyyy-MM-dd - (ex: 2015-04-28) - end_date
string
: End of date range search, format: yyyy-MM-dd - (ex: 2015-04-28). If left off search will extends 7 days from start_date - detailed
boolean
: detailed
- start_date
Output
- output NearEarthObjectList
retrieveNEOFeedToday
Get a list of Near Earth Objects for today
neowsapp.retrieveNEOFeedToday({}, context)
Input
- input
object
- detailed
boolean
: detailed
- detailed
Output
- output NearEarthObjectList
browseNearEarthObjects
Retieve a paginated list of Near Earth Objects
neowsapp.browseNearEarthObjects({}, context)
Input
- input
object
- page
integer
: page - size
integer
: size
- page
Output
- output NearEarthObject
retrieveSentryRiskData
Retrieves Near Earth Objects listed in the NASA sentry data set
neowsapp.retrieveSentryRiskData({}, context)
Input
- input
object
- is_active
boolean
: show current list of Sentry objects, or show removed Sentry objects - page
integer
: page - size
integer
: size
- is_active
Output
- output SentryObjectPagingDto
retrieveSentryRiskDataById
Retrieves Sentry Near Earth Object by ID
neowsapp.retrieveSentryRiskDataById({
"asteroid_id": ""
}, context)
Input
- input
object
- asteroid_id required
string
: ID of NearEarth object. ID can be SPK_ID, Asteroid des (designation) or Sentry ID
- asteroid_id required
Output
- output SentryImpactRiskObject
retrieveNearEarthObjectById
Retrieve a Near Earth Objects with a given id
neowsapp.retrieveNearEarthObjectById({
"asteroid_id": ""
}, context)
Input
- input
object
- asteroid_id required
string
: ID of Near Earth Object - (ex: 3729835)
- asteroid_id required
Output
- output NearEarthObject
retrieveCurrentNeoStatistics
retrieveCurrentNeoStatistics
neowsapp.retrieveCurrentNeoStatistics(null, context)
Input
This action has no parameters
Output
- output Statistics
Definitions
CloseApproachData
- CloseApproachData
object
- close_approach_date
string
- close_approach_date_full
string
- epoch_date_close_approach
integer
- miss_distance MissDistance
- orbiting_body
string
- relative_velocity RelVelocity
- close_approach_date
EstimatedDiameter
- EstimatedDiameter
object
- estimated_diameter_max
number
: An estimate of the maximum size of the Asteroid - bases on the abosolute magnitude - estimated_diameter_min
number
: An estimate of the minimum size of the Asteroid - bases on the abosolute magnitude
- estimated_diameter_max
EstimatedDiameterContainer
- EstimatedDiameterContainer
object
- feet EstimatedDiameter
- kilometers EstimatedDiameter
- meters EstimatedDiameter
- miles EstimatedDiameter
HashMapstring_List_NearEarthObject
MissDistance
- MissDistance
object
- astronomical
string
- kilometers
string
- lunar
string
- miles
string
- astronomical
NearEarthObject
- NearEarthObject
object
- absolute_magnitude_h
number
: Is a measure of an asteroids brightness - close_approach_data
array
: Close approach information of the Asteroid- items CloseApproachData
- designation
string
- estimated_diameter EstimatedDiameterContainer
- is_potentially_hazardous_asteroid
boolean
- is_sentry_object
boolean
- name
string
- name_limited
string
- nasa_jpl_url
string
: A Link to the NASA JPL Small-Body Database website - neo_reference_id
string
: The reference ID of the Asteroid - This correlates to the SPK ID for the JPL NEO data - orbital_data OrbitalData
- sentry_data
string
- absolute_magnitude_h
NearEarthObjectList
- NearEarthObjectList
object
- element_count
integer
: Number of NEOs in list - links
object
: Hypermedia links to collection - nearearth_objects [HashMap_string_List_NearEarthObject](#hashmapstring_list_nearearthobject)
- element_count
OrbitClass
- OrbitClass
object
- orbit_class_description
string
- orbit_class_range
string
- orbit_class_type
string
(values: IEO, ATE, APO, AMO, MCA, IMB, MBA, OMB, TJN, CEN, TNO, PAA, HYA, HYP, PAR, COM, JFC, HTC, ETC, CTC, JFc)
- orbit_class_description
OrbitalData
- OrbitalData
object
- aphelion_distance
string
- ascending_node_longitude
string
- data_arc_in_days
integer
- eccentricity
string
- epoch_osculation
string
- equinox
string
- first_observation_date
string
- inclination
string
- jupiter_tisserand_invariant
string
- last_observation_date
string
- mean_anomaly
string
- mean_motion
string
- minimum_orbit_intersection
string
- observations_used
integer
- orbit_class OrbitClass
- orbit_determination_date
string
- orbit_id
string
- orbit_uncertainty
string
- orbital_period
string
- perihelion_argument
string
- perihelion_distance
string
- perihelion_time
string
- semi_major_axis
string
- aphelion_distance
PageMetaData
- PageMetaData
object
- number
integer
- size
integer
- total_elements
integer
- total_pages
integer
- number
RelVelocity
- RelVelocity
object
- kilometers_per_hour
string
- miles_per_hour
string
- kilometers_per_hour
SentryImpactRiskObject
- SentryImpactRiskObject
object
- Palermo_scale_max
string
- absolute_magnitude
string
- average_lunar_distance
number
- designation
string
- estimated_diameter
string
- fullname
string
- impact_probability
string
- is_active_sentry_object
boolean
- last_obs
string
- last_obs_jd
string
- palermo_scale_ave
string
- potential_impacts
string
- removal_date
string
- sentryId
string
- torino_scale
string
- v_infinity
string
- year_range_max
string
- year_range_min
string
- Palermo_scale_max
SentryObjectPagingDto
- SentryObjectPagingDto
object
- links
object
- page PageMetaData
- sentry_objects
array
- items SentryImpactRiskObject
- links
Statistics
- Statistics
object
- close_approach_count
integer
: Number of Close Approach listings across all NEOs listed in NeoWs - last_updated
string
: TimeStamp the last time the DB was updated - nasa_jpl_url URL
- near_earth_object_count
integer
: Number of NearEarthObjects listed in NeoWs - source
string
- close_approach_count
URL
- URL
object
- host
string
- authority
string
- content
object
- defaultPort
integer
- file
string
- path
string
- port
integer
- protocol
string
- query
string
- ref
string
- userInfo
string
- host