shashwatak/satellite-js

Documentation or implementation error for `degreesLat` and `degreesLong`

Closed this issue · 2 comments

In the README, there is a section that says:

//  Convert the RADIANS to DEGREES for pretty printing (appends "N", "S", "E", "W", etc).
var longitudeStr = satellite.degreesLong(longitude),
    latitudeStr  = satellite.degreesLat(latitude);

The code for degreesLong and degreesLat, however, only returns numerical values without any of "N", "S", "E", or "W" appended. I'm not sure if this is a documentation error or an implementation error.

If it's a documentation error, the TypeScript definitions should be changed so that degreesLat and degreesLong return number instead of string.

ezze commented

It's error in documentation. Probably, these letters are left after first serious refactoring in 2.0.0.

ezze commented

Fixed in 4.1.1.