- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们希望在我们的 Web 应用程序中为来自某个州(佛罗里达州)的访问者与来自其他国家/地区(和世界)的访问者实现略有不同的行为。
它是否 100% 准确并不重要,但已经进入 90 年代了——如果一些佛罗里达人看到另一个版本,而其他人看到佛罗里达版本,这没关系。
您对根据用户的 IP 地址进行州级用户身份识别有何经验?
是的,我了解使用此信息(ISP、代理服务器、yada yada)的理论局限性,但我不知道这在现实世界中如何发挥作用。有一些很好的答案 about the different providers和 accuracy ,但他们并没有真正回答我们的州级实证问题。谷歌provides some ,但不是我们正在寻找的信息。
谢谢。如果效果不够好,我们不想采用这种方法。
最佳答案
MaxMind ,它提供了一个流行的 IP 到位置数据库,发布了一些关于其数据的统计数据:
这是他们为美国发布的数据(最后更新于 2010 年 5 月 17 日):
Correctly Resolved Within 25 Miles of True Location: 83% (85%)
Incorrectly Resolved More Than 25 Miles From True Location: 14%
Not Covered on a City Level: 3%
定义:
Correctly Resolved Within 25 Miles of True Location: refers to the IP addresses that are correctly resolved within 25 miles of the actual city. The second number in parenthesis refers to the percentage of IP addresses that are correctly resolved if excluding data not covered on a city level.
Incorrectly Resolved More Than 25 Miles From True Location: refers to IP addresses that were incorrectly resolved by more than 25 miles of the actual city.
Not Covered on a City Level: refers to the percentage of the data of select country that does not contain city information. We leave these data ranges without city information to prevent false positives. The city information is not available for AOL IP address or when Internet Service Providers (ISPs) route traffic through proxies thus masking the originating location.
关于javascript - 美国各州的 geo ip 数据有多准确?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3540235/
以下显示而不是我模板中的字段。 我的模板有 {{ form.state }} 问题是什么? class RegistrationForm(forms.Form): first_name =
所以我有这个正则表达式测试器: /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/.test(value); 它适用于以下情况: 123-456-
这是基本问题: 美国联邦所得税可能每年甚至年中发生变化。它们基于税表,无论您是单例还是已婚,您获得付款的频率以及您申请的免税额。以下是单例且每两周领取一次工资的纳税表示例(2013 年): Gross
我在 America/Los_Angeles TZ 上,当我尝试在 America/Mazatlan TZ 中渲染午夜时,出现以下异常: Exception in thread "main" java
我正在使用美国 map 来显示数据状态,Extension map 工作正常悬停时,我成功地为每个状态提供了值。但使用循环。 "mouseover" : function(event, data)
我正在尝试在数据集中创建一个新列,该新列依赖于数据中的两个单独的列(国家/地区和邮政编码)。如果国家/地区是“美国”,我希望新列获取邮政编码列中的数据并删除“-”后面的所有内容(仅保留前五个数字)。如
这个问题在这里已经有了答案: pytz localize vs datetime replace (4 个答案) 关闭 4 年前。 这是我的 Python 代码: import pytz from
我正在尝试为每个状态分配一种颜色,以便没有两个相邻状态共享相同的颜色 ( http://en.wikipedia.org/wiki/Four_color_theorem )。该程序将输出每个状态及其颜
给定一个州列表,如美国各州,我试图编写一个算法来判断这些州是否相邻。顺序无关紧要,可以重新访问状态。 例子: AZ, CA, OR, WA 是连续的 AZ, CA, NM, UT 是连续的 AZ, N
我正在使用 MySQL 执行一些深入的数据分析,并且希望能够创建美国的颜色编码 map ,其中将根据值范围设置各个州的颜色;有任何想法吗?管理层喜欢颜色,轻松地按地理位置汇总数据的能力对他们来说将
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 10 年前。 Improve th
我有一个语言切换器,它工作得很好,直到我收到用户的邮件说我的应用程序无法加载任何内容。 经过一番交谈,用户告诉我他们将 iDevice 语言设置为英语(英国)。我告诉他们将其更改为英语(美国),然后该
使用 Mike Bostock 示例的 d3.v3 的美国 map : 我希望 map 在页面加载时最初放大到标记的位置,但应该呈现整个 map ,以便用户可以根据需要缩小。 var w = 300;
我希望我的 iOS 应用程序能够显示特定于用户当前所在州(即加利福尼亚州、俄勒冈州等)的信息。这是如何使用核心位置来完成的? CLLocation 类具有坐标 — 如何将其转换为状态? (仅供引用,我
我正在使用 jQuery 美国 map 插件。 在这里找到的。 https://github.com/NewSignature/us-map/ 我正在尝试添加 10 个附加按钮,它们也将与状态数据相关
我是澳大利亚的一名开发者,我正在为 Android 和 iOS 项目使用 Firebase 实时数据库。 客户提示滞后和延迟,尤其是在登录时,我正在尝试查明是否有任何 Firebase 进程默认位于美
我正在尝试找到一种使用 NSNumberFormatter 将输入数字字符串格式化为美国电话号码样式的方法。 例如:4155552671应该是+1-415-555-2671(如果我没记错的话) 我想知
该问题要求计算一周中每一天的第 13 个数。这是我的代码。 class CopyOffriday { public static void main(String[] args) throws IOE
出于学习目的,我正在尝试开发一个应用程序,它将在 MKMapView 上显示到特定点的方向。 但是,无论地址如何,DirectionsResponse 每次都会给我以下错误: 2013-12-28 1
我有一个非常简单的登录页面(登录名+密码)。 我的用户是法国人,所以他们的键盘是法语 (azerty)。 从 iOS 12 开始,当他们点击 protected 密码文本字段时,键盘会切换为英语 (q
我是一名优秀的程序员,十分优秀!