PHP Class Location\Formatter\Coordinate\DecimalMinutes

Author: Marcus Jaschen ([email protected])
Inheritance: implements Location\Formatter\Coordinate\FormatterInterface
Afficher le fichier Open project: mjaschen/phpgeo Class Usage Examples

Protected Properties

Свойство Type Description
$decimalPoint string
$digits integer
$separator Separator string between latitude and longitude
$unitType string
$units array
$useCardinalLetters boolean Use cardinal letters for N/S and W/E instead of minus sign

Méthodes publiques

Méthode Description
__construct ( string $separator = " " )
format ( Coordinate $coordinate ) : string
setDecimalPoint ( string $decimalPoint ) : DecimalMinutes
setDigits ( integer $digits ) : DecimalMinutes
setSeparator ( $separator ) : DecimalMinutes Sets the separator between latitude and longitude values
setUnits ( string $type )
useCardinalLetters ( boolean $value ) : DecimalMinutes

Méthodes protégées

Méthode Description
getLatPrefix ( $lat ) : string
getLatSuffix ( $lat ) : string
getLngPrefix ( $lng ) : string
getLngSuffix ( $lng ) : string

Method Details

__construct() public méthode

public __construct ( string $separator = " " )
$separator string

format() public méthode

public format ( Coordinate $coordinate ) : string
$coordinate Location\Coordinate
Résultat string

getLatPrefix() protected méthode

protected getLatPrefix ( $lat ) : string
$lat
Résultat string

getLatSuffix() protected méthode

protected getLatSuffix ( $lat ) : string
$lat
Résultat string

getLngPrefix() protected méthode

protected getLngPrefix ( $lng ) : string
$lng
Résultat string

getLngSuffix() protected méthode

protected getLngSuffix ( $lng ) : string
$lng
Résultat string

setDecimalPoint() public méthode

public setDecimalPoint ( string $decimalPoint ) : DecimalMinutes
$decimalPoint string
Résultat DecimalMinutes

setDigits() public méthode

public setDigits ( integer $digits ) : DecimalMinutes
$digits integer
Résultat DecimalMinutes

setSeparator() public méthode

Sets the separator between latitude and longitude values
public setSeparator ( $separator ) : DecimalMinutes
$separator
Résultat DecimalMinutes

setUnits() public méthode

public setUnits ( string $type )
$type string

useCardinalLetters() public méthode

public useCardinalLetters ( boolean $value ) : DecimalMinutes
$value boolean
Résultat DecimalMinutes

Property Details

$decimalPoint protected_oe property

protected string $decimalPoint
Résultat string

$digits protected_oe property

protected int $digits
Résultat integer

$separator protected_oe property

Separator string between latitude and longitude
protected $separator

$unitType protected_oe property

protected string $unitType
Résultat string

$units protected_oe property

protected array $units
Résultat array

$useCardinalLetters protected_oe property

Use cardinal letters for N/S and W/E instead of minus sign
protected bool $useCardinalLetters
Résultat boolean