duanjiebian6712 2012-07-06 17:50
浏览 33
已采纳

寻找网站访问者地理位置的解决方案

I am aware that there are many services which provide geolocation tools for working out where users are visiting from. The website I'm working on is an e-commerce site which runs in multi-territories. When a visitor hits the website it should work out where they are from and show the relevant currency/language for the user.

In the past we have used maxmind but I'm wondering if there are better solutions out there. I'm calling out to developers with experience in this area to share their knowledge and expertise on what's available and what the pro's and con's are of various solutions.

Additional info: The website in question runs mainly on a combination of Java (Spring) and PHP (Kohana), so libraries for either of those can also be considered. We already have a solution for working out which currency to use provided we can obtain the ISO code of the visitor's country.


Update
Thought I'd leave a rough explanation of the outcome for anyone who visits this question.

Geolocation: I've used freegoip for detecting user location as suggested in this thread.
Language: When working out which language to use for the user I have used PHP to check the language set in the user's browser: http://www.php.net/manual/en/function.http-negotiate-language.php

  • 写回答

5条回答 默认 最新

  • dtuzjzs3853 2012-07-06 18:05
    关注

    I've been working on a project that requires geolocation, unfortunately I find that most services are working on MaxMind database , at last I used freegeoip , free and so far precise in my region.

    Regards.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)