Skip to content
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

Ability to query cities by country name in addition to country code #33

Open
sarmad90 opened this issue Mar 19, 2018 · 1 comment
Open

Comments

@sarmad90
Copy link

Hey! I'm using this gem, going well so far. I needed to query cities with country name as compared to only being able to query cities with country code, so I've written a small method to do that. Take a look if you find it useful and think it should be merged. Thanks.

@TahaMaqbool
Copy link

TahaMaqbool commented Jan 14, 2019

@sarmad90 I did this to solve this problem
CS.states(:us).keys.flat_map { |state| CS.cities(state, :us) }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants