Sf TIC Bundles

Geolocatable

Gestion des champs latitude & longitude pour les coordonnées géographiques.

Table of Contents

Properties

$geoLat  : mixed
$geoLng  : mixed

Methods

getGeoLat()  : float|null
getGeoLng()  : float|null
getGeomap()  : array<string|int, mixed>|string
Retourne les coordonnées latitude;longitude pour le formulaire.
parseGeomap()  : array<string|int, mixed>|null
Retourne un tableau {'lat','lng'} à partir de différents formats d'entrée.
setGeoLat()  : self
setGeoLng()  : self
setGeomap()  : Entity
Enregistre les coordonnées latitude;longitude pour le formulaire.

Properties

$geoLat

protected mixed $geoLat
Tags
ORM\Column

(type="decimal", precision=10, scale=6, nullable=true)

$geoLng

protected mixed $geoLng
Tags
ORM\Column

(type="decimal", precision=10, scale=6, nullable=true)

Methods

getGeoLat()

public getGeoLat() : float|null
Return values
float|null

getGeoLng()

public getGeoLng() : float|null
Return values
float|null

getGeomap()

Retourne les coordonnées latitude;longitude pour le formulaire.

public getGeomap([bool|string $toString = false ]) : array<string|int, mixed>|string
Parameters
$toString : bool|string = false
Return values
array<string|int, mixed>|string

parseGeomap()

Retourne un tableau {'lat','lng'} à partir de différents formats d'entrée.

public static parseGeomap(array<string|int, mixed>|string $latLng[, string $sep = null ]) : array<string|int, mixed>|null
Parameters
$latLng : array<string|int, mixed>|string

Coordonnées à analyser (chaine concaténée ou tableau lat/lng)

$sep : string = null

Caractère(s) séparateur si $latLng est une chaine (par défaut ';' et ',')

Return values
array<string|int, mixed>|null

Tableau avec les clés 'lat' & 'lng' (ou null si données non reconnues)

setGeoLat()

public setGeoLat(float|null $geoLat) : self
Parameters
$geoLat : float|null
Return values
self

setGeoLng()

public setGeoLng(float|null $geoLng) : self
Parameters
$geoLng : float|null
Return values
self

setGeomap()

Enregistre les coordonnées latitude;longitude pour le formulaire.

public setGeomap(array<string|int, mixed>|string $latLng[, string $sep = null ]) : Entity
Parameters
$latLng : array<string|int, mixed>|string

Coordonnées à enregistrer (chaine concaténée ou tableau lat/lng)

$sep : string = null

Caractère(s) séparateur si $latLng est une chaine (par défaut ';' et ',')

Return values
Entity

        
On this page

Search results