faker.providers.geo.el_GR
¶
Package Contents¶
Classes¶
land_coords data extracted from geonames.org, under the Creative Commons Attribution 3.0 License. |
|
land_coords data extracted from geonames.org, under the Creative Commons Attribution 3.0 License. |
- class faker.providers.geo.el_GR.GeoProvider(generator: Any)¶
Bases:
faker.providers.BaseProvider
land_coords data extracted from geonames.org, under the Creative Commons Attribution 3.0 License. Coordinates are in decimal format for mapping purposes. Country code is in Alpha 2 format (https://www.nationsonline.org/oneworld/country_code_list.htm). Timezones are canonical (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
- land_coords: Tuple[PlaceType, Ellipsis] = (('42.50729', '1.53414', 'les Escaldes', 'AD', 'Europe/Andorra'), ('36.21544', '65.93249',...¶
- coordinate(center: Optional[float] = None, radius: Union[float, int] = 0.001) decimal.Decimal ¶
Optionally center the coord and pick a point within radius.
- latitude() decimal.Decimal ¶
- longitude() decimal.Decimal ¶
- latlng() Tuple[decimal.Decimal, decimal.Decimal] ¶
- class faker.providers.geo.el_GR.Provider(generator: Any)¶
Bases:
faker.providers.geo.Provider
land_coords data extracted from geonames.org, under the Creative Commons Attribution 3.0 License. Coordinates are in decimal format for mapping purposes. Country code is in Alpha 2 format (https://www.nationsonline.org/oneworld/country_code_list.htm). Timezones are canonical (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
- poly = (('40.34026', '19.15120'), ('42.21670', '26.13934'), ('35.55680', '29.38280'), ('34.15370', '22.58810'))¶
- local_latlng(*args: Any, **kwargs: Any) Tuple[str, str] ¶
Returns a location known to exist on land in a country specified by country_code. Defaults to ‘en_US’. See the land_coords list for available locations/countries.
- local_latitude() decimal.Decimal ¶
- local_longitude() decimal.Decimal ¶