faker-ruby / faker

A library for generating fake data such as names, addresses, and phone numbers.
MIT License
11.2k stars 3.18k forks source link

Rail stations #2754

Closed AngusDSR closed 1 year ago

AngusDSR commented 1 year ago

Is your feature request related to a problem? Please describe it. Currently, Faker doesn't have a train station generator, and this is a little niche but can be a problem for testing location-based applications or data pipelines that deal with transit data. Having a train station generator would add value to the Faker library and allow for better testing of these types of applications.

More broadly More options for creating dummy data is helpful and the more comprehensive list of 'things' that Faker includes, the better IMO.

If you're adding new objects, please describe how you would use them Provide examples of how the proposed feature could be useful and relevant.

For example, if proposing a new generator, explain why it's useful and relevant to Faker, and examples of how to use it in a real project.

The proposed train station generator would allow developers to generate random station names from regions UK, US, Germany, and Spain.

For example, a dev working on a transit app could use the train station generator to populate a database with realistic train station names from different regions without knowing what 'sounds German' or Spanish. This could be use to test search and location-based services too.

Describe alternatives you've considered One alternative to adding a new train station generator would be to manually create a list of station names and use them in tests. However, this can be time-consuming and may not provide enough variety in the generated data.

Another alternative would be to use an external library or API to generate train station names, but doing this for multiple regions would also be time-consuming, would add an additional dependency to the project and may not integrate well with Faker.

Another alternative woulds be to integrate an API with Faker but again the same issues as above.

thdaraujo commented 1 year ago

new feature added on #2755