Generator configuration
geolocation
Commentary
added in 0.2.5
global configuration
Sets the mapping to the external data files that power the geolocation
function. See the function for more detail.
Examples
Configuring the data
Provide the mapping between country and file. The file should be the absolute path within the Docker container.
{
"generators": [
{
"topic": "locations",
"value": {
"_gen": "geolocation",
"country": "United States"
}
}
],
"globalConfigs": {
"geolocation": {
"countryFiles": {
"United States": "/home/your-file.csv"
}
}
}
}
Specification
JSON schema
{
"type": "object",
"properties": {
"geolocation": {
"type": "object",
"properties": {
"countryFiles": {
"type": "object"
}
}
}
}
}