1
0
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:
ognjen miletic 2014-02-26 11:23:00 +01:00
parent 7c9a1dcdc6
commit ca14c7ba6b

View File

@ -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);
}
}