Page 1 of 1

detect a users province/state

Posted: Thu May 13, 2010 8:01 pm
by assimilation
I'd like to detect what province/state my users are visiting from, so far I can only find ways to detect what country they're from. I know it's possible, does anyone have any solutions for this? Thanks in advance.

Re: detect a users province/state

Posted: Thu May 13, 2010 8:10 pm
by Christopher
Are you looking for a particular country or anywhere on earth?

Re: detect a users province/state

Posted: Thu May 13, 2010 9:49 pm
by assimilation
My question clearly stated that I was looking to detect states/provinces of visitors, so yes I'm looking for a place on earth, not sure what you're getting at.

Re: detect a users province/state

Posted: Thu May 13, 2010 10:14 pm
by requinix
He's asking whether you only care about tracking users in the US and Canada, or users everywhere on the planet.

Re: detect a users province/state

Posted: Thu May 13, 2010 10:30 pm
by assimilation
I want to track provinces in Canada, sorry for the confusion.

Re: detect a users province/state

Posted: Fri May 14, 2010 1:36 am
by Christopher
You may be able to do it with a combination of timezone and IP address. And you might use Javascript to find some Geolocation information. Perhaps Google has a service that might do this kind of thing.