You are here

interface DmsConverterInterface in Geofield 8

Defines an interface for DmsConverter.

Hierarchy

Expanded class hierarchy of DmsConverterInterface

All classes that implement DmsConverterInterface

File

src/DmsConverterInterface.php, line 8

Namespace

Drupal\geofield
View source
interface DmsConverterInterface {

  /**
   * Transforms a DMS point to a decimal one.
   *
   * @param \Drupal\geofield\DmsPoint $point
   *   The DMS Point to transform.
   *
   * @return array
   *   The equivalent Decimal Point array.
   */
  public static function dmsToDecimal(DmsPoint $point);

  /**
   * Transforms a Decimal point to a dms one.
   *
   * @param float $lon
   *   The Decimal Point to transform longitude.
   * @param float $lat
   *   The Decimal Point to transform latitude.
   *
   * @return \Drupal\geofield\DmsPoint
   *   The equivalent DMS Point object.
   */
  public static function decimalToDms($lon, $lat);

}

Members

Namesort descending Modifiers Type Description Overrides
DmsConverterInterface::decimalToDms public static function Transforms a Decimal point to a dms one. 1
DmsConverterInterface::dmsToDecimal public static function Transforms a DMS point to a decimal one. 1