Geolocatable
Gestion des champs latitude & longitude pour les coordonnées géographiques.
Table of Contents
Properties
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
$geoLng
protected
mixed
$geoLng
Tags
Methods
getGeoLat()
public
getGeoLat() : float|null
Return values
float|nullgetGeoLng()
public
getGeoLng() : float|null
Return values
float|nullgetGeomap()
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>|stringparseGeomap()
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
selfsetGeoLng()
public
setGeoLng(float|null $geoLng) : self
Parameters
- $geoLng : float|null
Return values
selfsetGeomap()
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 ',')