How do I use the AddressGen Generator?
Modified on: Wed, 19 Jul, 2023 at 4:23 PM
The AddressGen Generator generates addresses consisting of a street number, name, and type with optional direction.
In This Article
The following parameters may be configured for the AddressGen Generator. Items with an asterisk* are required.
- startNumber* - Defines a starting street number (e.g., 1, 500, 1000).
- endNumber - Defines an ending street number (e.g., 500, 1000, 2500).
- waitAmount* - Defines how many iterations the street direction, name, and type will remain the same while the street number still increases.
- jumpAmount* - Defines the amount to jump between street numbers.
- streetNames* - Select between names of presidents or names of trees (e.g., Washington, Apple, Oak).
- randomize* - Defines whether the street direction, name, and type will be randomized.
- seed - Defines an optional seed for randomization. Using the seed will ensure that the same random data is generated each time data is generated.
- useDirection* - Defines whether the direction will appear in the street address. If True, then the direction will appear in the address (e.g., NE, N, S, SW). When False, the direction will not appear in the address.
The following video can be used to see a quick tutorial on how to use the AddressGen Generator:
Does the AddressGen Generate Real Addresses?
The AddressGen Generator generates synthetic addresses via a pattern, but these addresses are not real. Real addresses are not synthetic data; they are enumerated data. The related zipCode, city, and state Generators generate a finite set of related enumerated data. But, even their enumerated data is technically considered synthetic as zipCodes and city names may change over time; however, the enumerated data within these Generators will not change.
To generate real and specific addresses, users can assign the ListGen Generator or one of the QueryGen Generators (e.g., ListCSVGen) to define the specific addresses to query for generating real addresses. Another option is the G-Query feature within the Self Service Platform to query from enumerated data for multiple Domain Attributes. G-Queries are the recommended approach when users want to test with real-world data that is not synthetic.
How Does the AddressGen Generator Work
- Create a new Attribute or use an existing Attribute.
- Assign the AddressGen to the Attribute.
- Configure the Generator parameters and save the changes.
Example 1 - Addresses with a Defined Street Range and Directions Included
The following parameter configuration generates addresses with a street number ranging from 500 to 2500 and the street name as presidents. Addresses are randomized, and directions are included.
Example 2 - Increasing Street Numbers with Same Street Name for Multiple Records
The parameter configuration below switches the street name every ten records while increasing the street number for every record. Data is randomized, and directions are NOT included.
Did you find it helpful?
Sorry we couldn't be helpful. Help us improve this article with your feedback.