Git Product home page Git Product logo

Comments (6)

stefannibrasil avatar stefannibrasil commented on May 25, 2024

We don't use that URL to generate anything, just as a reference.

Could you clarify more, this bug report is not clear to me.

Address is generating fake zip codes

What is the issue here? Is the format wrong? Could you add a reproduction script showing exactly what the bug is? Just adding a version does not help.

from faker.

garrettgregor avatar garrettgregor commented on May 25, 2024

Apologies.. I wasn't entirely sure how to reproduce it, but my seed data was being populated by zip codes that didn't actually exist anywhere in the US, which was leading to bugs in my geocoder.

What I had in my seed file was:
zip: Faker::Address.zip

and this led to the two aforementioned fake zips I identified (I didn't check every one):

90779
36631

from faker.

thdaraujo avatar thdaraujo commented on May 25, 2024

Hi, @garrettgregor , thanks for the reproduction steps. Zipcodes are randomly generated by faker, there's no guarantee they will exist anywhere.

from faker.

garrettgregor avatar garrettgregor commented on May 25, 2024

Understood. I was under the impression that they were being created from real zips - I'd love to potentially contribute to see if there is a way to generate real data. When utilizing faker for zips, and then trying to geocode off that data, I think it would be valuable for devs to have that zip code be reliable.

from faker.

stefannibrasil avatar stefannibrasil commented on May 25, 2024

to see if there is a way to generate real data

We only generate fake random data. If the need is to generate real data, it's best to do that on your app and share it with others through blog posts, gists, etc. That's also a way to contribute to the library and to the community :)

from faker.

garrettgregor avatar garrettgregor commented on May 25, 2024

from faker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.