Module: IssStationService

IssStationService module
Source:

Members

(inner, constant) EarthRadius

Earth Radius
Source:

(inner, constant) firebaseFunctions

Source:

(inner, constant) http

Source:

(inner, constant) url

url of the API
Source:

Methods

(inner) checkISSPosition(uid) → {Promise}

Check the ISS position, compute the distance between the user and the ISS and return true if iss is close
Parameters:
Name Type Description
uid * needed to connect to the firebase to get user position
Source:
Returns:
Type
Promise

(inner) Radiant() → {number}

Convert a degree value in radiant
Source:
Returns:
the converted value
Type
number

(inner) RegistedRequiredIss(uid, data)

Register the user data in the db.
Parameters:
Name Type Description
uid string user id
data Object data is an object containing the latitude & longitude
Source: