Comments (2)
With version 0.1.0 (released yesterday), you can now add missing states by editing db/states-lookup.yml
.
In the following example all cities with no corresponding state will be assigned to a new state named "Missing State":
SG:
"": "Missing State"
You can also rename or add missing cities by editing db/cities-lookup.yml
.
I am not sure this would fix the issue you are experiencing though, because it is a flaw on MaxMind database, but I am working on a new version of this gem that uses alternative sources. I am thinking to use OpenStreetMaps database but there are some technical difficulties in doing so - the OSM database size is about 40GB, so I am thinking to use GitHub Actions to process this database from time to time. Anyway, improvements are coming :)
PS: Sorry for the delayed reply.
from city-state.
That's no problem @loureirorg! Thanks for the update, I think this solves the problem at least for missing states.
from city-state.
Related Issues (20)
- Ability to query cities by country name in addition to country code HOT 1
- Invalid data for GB HOT 1
- broken link
- NoMethodError: undefined method `present?' for :US:Symbol HOT 1
- missing city Surat
- Is there a plan to include timezone in?
- Typo correction "Tithari" should be changed to "Ithari" for Nepal HOT 2
- Failed to open TCP connection to geolite.maxmind.com:80 (getaddrinfo: No address associated with hostname) (SocketError) HOT 4
- Renaming a city or Delete city HOT 3
- How to access cities when tthere is no states present for a countrry.
- Permission errors on deploy
- "No such file or directory @ rb_sysopen <url>" when attempting update
- Not working with ruby 3.2 HOT 5
- Cannot list all existing cities to check if certain city exists or not right away
- Error "Did you mean? exist?" HOT 3
- Ruby with version 3.2.2 removed method exists? for class File HOT 1
- Capturing Address in MM
- Request: new gem release HOT 1
- `CS.countries` is giving `undefined method 'exists?' for File:Class` error HOT 2
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 city-state.