LatLng extends Model
Table of Contents
- $lat : float|null
 - The latitude in degrees.
 - $lng : float|null
 - The longitude in degrees.
 - from() : static
 - Initializing a model from an array
 - getLat() : float
 - Getter for lat
 - getLng() : float
 - Getter for lng
 - jsonSerialize() : array<string|int, mixed>
 - setLat() : static
 - Setter for lat
 - setLng() : static
 - Setter for lng
 
Properties
$lat
The latitude in degrees.
    protected
        float|null
    $lat
     = null
    
    
    
$lng
The longitude in degrees.
    protected
        float|null
    $lng
     = null
    
    
    
Methods
from()
Initializing a model from an array
    public
            static    from(array<string|int, mixed> $params) : static
    
        Parameters
- $params : array<string|int, mixed>
 - 
                    
Pass this parameter if you want to initial property value from an array. See API reference for all property names and types
 
Tags
Return values
static —getLat()
Getter for lat
    public
                getLat() : float
    
    
    
        Return values
float —The latitude in degrees.
getLng()
Getter for lng
    public
                getLng() : float
    
    
    
        Return values
float —The longitude in degrees.
jsonSerialize()
    public
                jsonSerialize() : array<string|int, mixed>
    
    
    
    Tags
Return values
array<string|int, mixed> —setLat()
Setter for lat
    public
                setLat(float $lat) : static
    
        Parameters
- $lat : float
 - 
                    
The latitude in degrees.
 
Return values
static —To use in method chains
setLng()
Setter for lng
    public
                setLng(float $lng) : static
    
        Parameters
- $lng : float
 - 
                    
The longitude in degrees.
 
Return values
static —To use in method chains