简体   繁体   English

您能找到基于ip的移动用户所在的国家吗? (Rails 3.2 / geocoder gem)

[英]Can you find the country of a mobile user based on ip ? (Rails 3.2/geocoder gem)

I need to customize website based on country of user. 我需要根据用户所在的国家/地区来定制网站。 I want to use geocoder gem . 我想使用geocoder gem

Can these type of tools and geocoder gem specifically find the country of a user using a mobile device (mobile phone, tablets...) ? 这些类型的工具和地理编码器gem能否专门使用移动设备(手机,平板电脑...)找到用户所在的国家/地区? or does it only work for set/fixed computers/laptops ? 还是仅适用于固定/固定计算机/笔记本电脑?

Note: in don't need something more precise than country identification. 注意:不需要比国家识别更精确的信息。

It would work on mobile /tablets too and is not limited to a fixed set as you think. 它也可以在移动/平板电脑上使用,并且不限于您认为的固定集。

Reference 参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM