mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-24 01:09:50 +01:00
latitude and Longitude added
This commit is contained in:
parent
7c9a1dcdc6
commit
ca14c7ba6b
@ -108,4 +108,21 @@ class Address extends \Faker\Provider\Address
|
||||
{
|
||||
return static::randomElement(static::$cityNames);
|
||||
}
|
||||
|
||||
/**
|
||||
* @example '77.147489'
|
||||
*/
|
||||
public static function latitude()
|
||||
{
|
||||
return number_format(mt_rand(42430000, 42450000)/1000000, 6);
|
||||
}
|
||||
|
||||
/**
|
||||
* @example '86.211205'
|
||||
*/
|
||||
public static function longitude()
|
||||
{
|
||||
return number_format(mt_rand(19260000, 19270000)/1000000, 6);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user