Coordinates
    
            
            in package
            
        
    
            
            implements
                            Extension                    
    
    
        
        
    
Interfaces, Classes and Traits
- Extension
 - An extension is the only way to add new functionality to Faker.
 
Table of Contents
- latitude() : float
 - localCoordinates() : array<string|int, mixed>
 - longitude() : float
 - randomFloat() : float
 
Methods
latitude()
    public
                latitude([float $min = -90.0 ][, float $max = 90.0 ]) : float
    
        Parameters
- $min : float = -90.0
 - $max : float = 90.0
 
Tags
Return values
float —Uses signed degrees format (returns a float number between -90 and 90)
localCoordinates()
    public
                localCoordinates() : array<string|int, mixed>
    
    
    
    Tags
Return values
array<string|int, mixed> —longitude()
    public
                longitude([float $min = -180.0 ][, float $max = 180.0 ]) : float
    
        Parameters
- $min : float = -180.0
 - $max : float = 180.0
 
Tags
Return values
float —Uses signed degrees format (returns a float number between -180 and 180)
randomFloat()
    private
                randomFloat(int $nbMaxDecimals, float $min, float $max) : float
        
        Parameters
- $nbMaxDecimals : int
 - $min : float
 - $max : float