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

cities from the country/state #15

Open
cooolbasha opened this issue Nov 11, 2011 · 3 comments
Open

cities from the country/state #15

cooolbasha opened this issue Nov 11, 2011 · 3 comments

Comments

@cooolbasha
Copy link

Hi,
Is there a way to get the cities from the country/state combination.

Thanks

@cjheath
Copy link
Owner

cjheath commented Nov 13, 2011

On 12/11/2011, at 1:05 AM, cooolbasha wrote:

Is there a way to get the cities from the country/state combination.

Not that I know of - but you might check the C API provided by Maxmind.
If they provide a way to do what you want, we can fairly easily add it to
the Ruby version.

Clifford Heath.

@joseluistorres
Copy link

Hi there, is anyone having an issue like this?

If I run in my local MACOSX:
gp = GeoIP.new('GEOIPCity.dat').city("Aguascalientes, Jalisco")
It finds the correct record, but if I run the same in our stage env, which is an Ubuntu, it works only with DNS names and IP address, does anyone know why?

I've been reading the code but I have no idea why is finding it... I'm more than happy to fix it, if you can give me a clue

@cjheath
Copy link
Owner

cjheath commented Jun 2, 2012

The city method takes a DNS name or a string representation of an IP address - not a city name. If "Aguascalientes, Jalisco" is getting resolved, it's because your DNS service is doing it - it's nothing to do with GeoIP.

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

3 participants