interface DmsConverterInterface in Geofield 8
Defines an interface for DmsConverter.
Hierarchy
- interface \Drupal\geofield\DmsConverterInterface
Expanded class hierarchy of DmsConverterInterface
All classes that implement DmsConverterInterface
File
- src/
DmsConverterInterface.php, line 8
Namespace
Drupal\geofieldView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DmsConverterInterface:: |
public static | function | Transforms a Decimal point to a dms one. | 1 |
DmsConverterInterface:: |
public static | function | Transforms a DMS point to a decimal one. | 1 |