Detecting location?

What are the options available to site owners for detecting the
location of a visitor? I know precision isn’t likely, but I’m
thinking more about the possibility of setting a reasonable first
guess for currency.

Is it possible, ignoring the amount of work that might be needed for
robust implementation, to make a fairly confident guess at US Dollar
or euro, for starters, with Sterling, Yen, Aussie Dollars, Roubles,
etc. as possibilities too?

What mechanisms would your first efforts deal with?

k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

How about detecting the country IP address with PHP?

David

On 17 Jun 2010, at 14:38, Keith Martin email@hidden wrote:

What are the options available to site owners for detecting the
location of a visitor? I know precision isn’t likely, but I’m
thinking more about the possibility of setting a reasonable first
guess for currency.

Is it possible, ignoring the amount of work that might be needed for
robust implementation, to make a fairly confident guess at US Dollar
or euro, for starters, with Sterling, Yen, Aussie Dollars, Roubles,
etc. as possibilities too?

What mechanisms would your first efforts deal with?

k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s one way to get this.

http://ipinfodb.com/ip_location_api_json.php

You can definitely get the country with absolute precision, except maybe in some (literal) edge cases.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

At 21:28 +0100 17/6/10, David Owen wrote:

How about detecting the country IP address with PHP?

Country From IP: Lookup the country of a given IP address - PHP Classes

David

On 17 Jun 2010, at 14:38, Keith Martin email@hidden wrote:

What are the options available to site owners for detecting the
location of a visitor? I know precision isn’t likely, but I’m
thinking more about the possibility of setting a reasonable first
guess for currency.

Is it possible, ignoring the amount of work that might be needed
for robust implementation, to make a fairly confident guess at US
Dollar or euro, for starters, with Sterling, Yen, Aussie Dollars,
Roubles, etc. as possibilities too?

What mechanisms would your first efforts deal with?

k

These methods don’t necessarily work when the visitor works for a
multinational company. In the past I have contracted to both HP and
Nokia in the UK, where my apparent location would have been be the
USA and Finland. I could make you think I’m in the USA now, but I
won’t be there until Saturday.

David


David Ledger - Freelance Unix Sysadmin in the UK.
HP-UX specialist of hpUG technical user group (www.hpug.org.uk)
email@hidden
www.ivdcs.co.uk


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s true. The best way to leverage these sorts of helpers is to ask
your visitors if you “guessed right”. Also offer a way out, like a
picking list or whack-a-flag or something like that, to give them a
chance to correct your assumption.

Walter

On Jun 17, 2010, at 5:14 PM, David Ledger wrote:

These methods don’t necessarily work when the visitor works for a
multinational company. In the past I have contracted to both HP and
Nokia in the UK, where my apparent location would have been be the
USA and Finland. I could make you think I’m in the USA now, but I
won’t be there until Saturday.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Keith,
As mentioned you could use GeoIP though PHP to try and determine the
user’s location based on their host’s IP address. If you wanted to go
bleeding edge you can also use HTML 5’s geolocation features;

http://html5demos.com/geo

The browser (if the feature is supported) will ask the user for
permission to share this information however. For a belt and braces
approach you could do both (geolocation with HTML 5 and GeoIP with
PHP) and cross reference the results.
Regards,
Tim.

On 17 Jun 2010, at 14:38, Keith Martin wrote:

What are the options available to site owners for detecting the
location of a visitor? I know precision isn’t likely, but I’m
thinking more about the possibility of setting a reasonable first
guess for currency.

Is it possible, ignoring the amount of work that might be needed for
robust implementation, to make a fairly confident guess at US Dollar
or euro, for starters, with Sterling, Yen, Aussie Dollars, Roubles,
etc. as possibilities too?

What mechanisms would your first efforts deal with?

FreewayActions.com - Freeware and commercial actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options