On Aug 23, 1:45 am, Rajinder Yadav <[email protected]> wrote:
> I am trying to figure out how to get the user's geo-location when a
> request comes in after they've clicked on a link. Is there a easy way to
> do this in rails, also is the geo-location provided by the user's
> browser, or is there another way this is determined?
>

You might want to take a look at the html5 geolocation api (
http://dev.w3.org/geo/api/spec-source.html ). The browser will ask the
user for permission, and precision will vary - last time I checked on
my machine Safari used nearby wifi signals to work out its position
(which was pretty good) whereas Firefox just did an ip address thing,
which was out by a hunded miles (and sometimes is completely wrong, eg
if I'm travelling and using a VPN)

Fred
> Thanks!
>
> --
> Kind Regards,
> Rajinder Yadav

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to