Comments (2)
The simplest way to get rid of it would be to use regular dicts for the zipcode-to-TZ-ids mapping. I think that's what we did in the past and then added the DAWG as way to reduce the memory footprint. However, there should be a much simpler way around it.
There are ~42k zipcodes in the US and each of them points to a list of TZ ids. That obviously adds up if you're using a unique list per zip code. However, most of these values are NOT unique and hence we can probably just make sure that we're reusing the same instance of a TZ ID list for each neighboring ZIP code.
Perhaps we can utilize tztrout.data.deduplicator
?
Line 29 in dd05201
from tz-trout.
Got rid of it in #16
from tz-trout.
Related Issues (11)
- Support for Australia HOT 1
- tz_ids methods return None instead of an empty list in some cases
- Antarctica/Macquarie should not be in ET
- US Zipcode list is out of date HOT 5
- Add a Github action to CI for Python>=3.6 versions
- `area` guessing based on `phonenumbers.geocoder.description_for_number` is wrong for some numbers HOT 2
- Support for Canada area codes HOT 1
- Shouldn't return duplicate offsets
- Investigate if methods from python-phonenumbers can be used to simplify the code
- 442 area code isn't properly assigned HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tz-trout.