* RandomLocationGenerator
Last updated
Last updated
The RandomLocationGenerator
creates realistic GPS coordinates from a list of countries. It transforms the real data by dropping all the GPS-related columns. Then when reverse transforming, it generates random, realistic coordinates from around the world. Use this transformer when you want to completely anonymize your coordinates.
locales
: An optional list of locales to use when generating GPS coordinates. All coordinates will be chosen from the list of available countries
(default) ["en_US"]
Create locations from the US
<list>
missing_value_generation
: Add this argument to determine how to recreate missing values during the reverse transform phase
(default) 'random'
Randomly assign missing values in roughly the same proportion as the original data.
None
Do not recreate missing values.
Create data from the list of countries specified
For example [
,
]
creates a mix of locations from the US and from Canada.
If you'd like to limit the regions based on the original data, use the or .
Worldwide, regional data is provided by .