Skip to content

[Location] Add support for generating rooms #3733

@TomSchrier

Description

@TomSchrier

Clear and concise description of the problem

As a developer using Faker, I want the location module to generate random rooms commonly found in a typical home. This would be useful for scenarios such as describing the placement of IoT devices or for real estate related applications.

Suggested solution

In the location module, we could add a new method to generate random rooms:

faker.location.room(); // "Kitchen"
faker.location.room(); // "Living Room"
faker.location.room(); // "Dining Room"
faker.location.room(); // "Laundry Room"

Alternative

I currently use faker.helpers.arrayElement with an array of rooms suitable for my app.

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: featureRequest for new featurem: locationSomething is referring to the location modules: waiting for user interestWaiting for more users interested in this feature
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions