MCPcopy Create free account
hub / github.com/facebook/Rapid / dmsCoordinatePair

Method dmsCoordinatePair

modules/core/LocalizationSystem.js:800–805  ·  view source on GitHub ↗

* Returns given coordinate pair in degree-minute-second format. * @param {Array } coord longitude and latitude * @return {string} Text to display

(coord)

Source from the content-addressed store, hash-verified

798 * @return {string} Text to display
799 */
800 dmsCoordinatePair(coord) {
801 return this.t('units.coordinate_pair', {
802 latitude: this._displayCoordinate(numClamp(coord[1], -90, 90), 'north', 'south'),
803 longitude: this._displayCoordinate(numWrap(coord[0], -180, 180), 'east', 'west')
804 });
805 }
806
807
808 /**

Callers 4

_getSearchResultsMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80

Calls 2

tMethod · 0.95
_displayCoordinateMethod · 0.95

Tested by

no test coverage detected