-
-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better address #196
Comments
most of the implementations I've seen with this capability requires a data file (csv, pipe, whatever) that has all 3 columns for US-based city,state,zipcode so it can be returned as a single tuple/struct equiv. Different Countries....different solutions. Psuedo Example for U.S.: notes: Usually the state is -either- the state spelled out, or state code, may need a helper function to convert back and forth pending on usecase. Parameterized to support range-based randomization to focus on desired need, i.e. only from one or several state codes, or one or several zipcodes, to avoid over-sizing randomization and trimming later. I'm not sure where other implementations get those data files however...so if someone knows, that might be the first step! p.s. would not recommend 'real' street address for this library, but if 'real' city/state/zip would at least work with any geo-heatmap-analytic kind of work even if its randomized if ignoring street address. |
I completely agree if anyone has that data and can make it easily usable. Im open to seeing that pr. |
Hi @brianvoe, I'd be interested in working on this issue. I was trying to find some data sources for addresses and came across this repo - https://github.com/dr5hn/countries-states-cities-database |
I do like the idea. Im going to give you some of the challenges I see and you(or anyone else) can let me know their thoughts.
|
|
|
|
ok sounds good to me. Ill try to see if i can get this file size as small as possible. Ill see if i can find some sort of list that may indicate to population or popularity and cross reference that. Well figure it out. |
Hi @brianvoe, just wanted to touch base with you regarding the data clean up. Is there anything I can do to help with that? Were you able to find a data source for city-wise population? |
Sorry I havent been able to look into this I am trying to finish a new implementation of another open source project I have called SlimSelect. Once I am done other there I can switch back and try to figure this out. If anyone has time please try to look into this, if just finding population data that would be a huge help in getting this feature implemented. |
Found something here world-cities. From the description:
The json file is ~2MB and has city, state, country info. We'll still have to cross-reference some other data for the pincodes, but let me know if this seems like a usable, reliable data source. |
I think this is a good try but it still doesnt allow me to lower the output limit based upon popuplation. I still think 15,000 would still be too large for this open source package. |
Right now the city may not be in the same state as well as the zip code and the full address isnt a good representation of actual usage
The text was updated successfully, but these errors were encountered: