How to use the geolib.decimal2sexagesimal function in geolib

To help you get started, we’ve selected a few geolib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apache / incubator-superset / superset / assets / src / explore / components / controls / ViewportControl.jsx View on Github external
renderLabel() {
    if (this.props.value.longitude && this.props.value.latitude) {
      return (
        decimal2sexagesimal(this.props.value.longitude) +
        ' | ' +
        decimal2sexagesimal(this.props.value.latitude)
      );
    }
    return 'N/A';
  }
  render() {
github apache / incubator-superset / superset / assets / src / explore / components / controls / ViewportControl.jsx View on Github external
renderLabel() {
    if (this.props.value.longitude && this.props.value.latitude) {
      return (
        decimal2sexagesimal(this.props.value.longitude) +
        ' | ' +
        decimal2sexagesimal(this.props.value.latitude)
      );
    }
    return 'N/A';
  }
  render() {

geolib

Library to provide basic geospatial operations like distance calculation, conversion of decimal coordinates to sexagesimal and vice versa, etc. This library is currently **2D**, meaning that altitude/elevation is not yet supported by any of its functions!

MIT
Latest version published 1 year ago

Package Health Score

62 / 100
Full package analysis