On Aug 24, 1:23 am, Rajinder Yadav <[email protected]> wrote:
> On 10-08-23 05:32 AM, Frederick Cheung wrote:

> Hi Fred,
>
> thanks for that info, for my use case a general location of the user,
> like country and possibly region or city will do!
>
> Q: About obtaining permission from the user, this needs to be done easy
> time? Thanks!

That's up to the browser to decide, and you should note that not all
browsers support this api yet (I'd assume IE doesn't, and only recent
version of Safari/Firefox do). If you only need something very coarse
then you could do an ip lookup competely server side - there are
various people who provide apis for that sort of thing.

Fred

-- 
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