faker.providers.geo.en_IE

Package Contents

Classes

GeoProvider

land_coords data extracted from geonames.org, under the Creative Commons Attribution 3.0 License.

Provider

land_coords data extracted from geonames.org, under the Creative Commons Attribution 3.0 License.

class faker.providers.geo.en_IE.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]
local_latlng(country_code: str = 'US', coords_only: bool = False) Optional[Tuple[str, Ellipsis]]

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.

location_on_land(coords_only: bool = False) Tuple[str, Ellipsis]

Returns a random tuple specifying a coordinate set guaranteed to exist on land. Format is (latitude, longitude, place name, two-letter country code, timezone) Pass coords_only to return coordinates without metadata.

class faker.providers.geo.en_IE.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).

land_coords = (('53.944000', '-8.095000', 'Carrish on Shannon, Leitrim,', 'IE', 'Europe/Dublin'),...