> session.locale.country
"US"
> session.locale.location
undefined
31–40 of 56 posts
> session.locale.country
"US"
> session.locale.location
undefined
The original visitor.js identified my city correctly; this only put me in the USA. Is there a free reliable precise geolocation service that can take as many hits as a script like this could throw at it?
The original visitor.js identified my city correctly; this only put me in the USA. Is there a free reliable precise geolocation service that can take as many hits as a script like this could throw at it?
The original visitor.js identified my city correctly; this only put me in the USA. Is there a free reliable precise geolocation service that can take as many hits as a script like this could throw at it?
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Brow...
The only thing that would make this better is to have it in coffeescript... :) which I might do for you if you don't.
The original visitor.js identified my city correctly; this only put me in the USA. Is there a free reliable precise geolocation service that can take as many hits as a script like this could throw at it?
Localization doesn't seem to work very well. I'm in Waterloo, Canada. This is what the script outputs for me: > session.locale.country "US" > session.locale.location undefined
Localization doesn't seem to work very well. I'm in Waterloo, Canada. This is what the script outputs for me: > session.locale.country "US" > session.locale.location undefined
1) session.locale, which is the locale (ie. regional settings) configuration of your browser and might very well be US,
and
2) session.location, which gives your geographic location ?