问题标签 [smartystreets]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
html - 从 SmartyStreets API 返回的 AJAX
我在使用这个 AJAX 调用实际上返回任何类型的对象时遇到了麻烦。我知道我做错了什么,但我不知道在哪里。我希望有人可以帮助我,我希望在对象“zip”中返回一个元素。我真的很想得到任何回应,但我无法得到任何回报。
jquery - SmartyStreets Jquery 没有绑定到模式中的地址字段?
情况不仅限于 SmartyStreet 的网站插件,而是它的最新症状:
页面打开具有以下形式的模式:
<form id="frmCreateDonorPerson" action="/donor/createPerson" method="post">
<input type="text" id="txtLine1" name="txtLine1">
etc.
etc.
</form>
以下 javascript没有模式情况(即当我直接导航到页面时),创建 SmartyStreets 地址验证器 Jquery 体验没有问题:
var ss = jQuery.LiveAddress({
key: "30340983409834098",
target: "US",
addresses: [{
address1: '#txtLine1',
etc.
etc.
}]
});
我希望 SmartyStreet 的网站插件可以在任何内容输入“Line1”框中时填充实时选项。
但是……纳达。
我已经注意到在其他类似情况下这种奇怪的症状(“模态中的 Jquery”),并且我已经研究了该问题短语的解决方案,但似乎没有解决方案可以回答这个问题。
非常感谢提前!!!
amazon-cloudfront - SmartyStreets 如何保护我的帐户?
我正在使用 smartystreets 来验证地址等。我给他们的唯一设置是引荐来源网址。
当我通过传递正确的推荐人向邮递员提出请求时,它工作正常。
如果有人从 AWS CloudFront 提供了相同的标头并窃取了我的账户订阅限制怎么办。
试图了解我的订阅是如何受到保护的。
谢谢。
以下是我可以在没有订阅 smartystreets 的情况下进行查询的方法,
URL 与 GET 一起使用(引用者:https ://smartystreets.com/ )标题:
公开的身份验证令牌ID:21102174564513388
javascript - Bootstrap 4 / Popper.js 干扰自动建议
我有一个使用 smartystreets api 进行地址验证的功能,当然我也在使用带有 bootstrap4 / popper.js 和 jquery 的模板。
如果单击这两个链接,您将看到该行为。它会破坏地址验证插件或设计,但我不知道如何让它们一起工作。
两者的区别在于一个有 class="form-control" 而另一个没有。form-control 类的某些东西正在触发该行为。损坏的设计链接在控制台中显示错误并中止导致添加“显示:无”的任何过程,以便地址建议起作用。
如果我没有触发该错误,地址验证插件会删除“display:none”,但紧随其后的是 bootstrap 或 popper.js 中的其他内容,干扰并将其更改回 display:none,只是闪烁效果。
如果有人能仔细看看并指出我正确的大方向。
java - JAVA 中桌面应用程序的地址规范化 API
我有地址,它是格式错误的地址或不完整的地址或拼写错误。我想得到正确的地址。如何在 Java 中为 Web 应用程序(桌面应用程序)找到正确的地址?
注意: API 应该是免费开源的。所以我可以在我的应用程序中使用它。
例如:地址名称:Ave/Aevnue/Aven
smartystreets - 如何从 SmartyStreet API 获取国家、州、县和城市?
我尝试使用示例 API,但似乎缺少一些参数。这是我尝试过的 API。
候选人中只有 CountyName 可用。地址在输入此 API 之前总是经过验证。我如何阅读国家、州和城市?我想从 API 中读取该信息,而不是从我提供的地址中读取。
laravel-5.8 - 如何将 smartystreet 与 laravel 集成
我想将 smartystreets 与我的 laravel 项目集成,但无法这样做。
我试过这个链接,但是当我运行“$ php artisan vendor:publish”时,它会抛出错误“Undefined constant 'FireEngineRed\SmartyStreetsLaravel\SmartyStreetsServiceProvider'”。任何帮助将不胜感激。
jquery - Smartystreets 不会自动填充邮政编码
我在我正在使用的表单上设置了SmartyStreets,它工作得很好,除了邮政编码在输入地址后不会自动验证。地址下拉菜单工作正常,地址显示,但 ZIP 始终为空白,因为它认为我没有输入足够的信息。错误消息不包括城市/州。
我在其他一些表格上有这个,它们都会自动验证地址。我在这里能错过什么?我的表单映射正确。我检查了与同一件事相关的其他一些 Stack Overflow 问题,不幸的是,他们的修复对我不起作用。
我尝试从下拉列表中选择一个地址,SmartyStreets 返回:“您没有输入足够的信息”。它似乎正在剥离城市和州。
python - SmartyStreets API looped across a data frame
I am fairly new to Python, and am working with the SmartyStreets API. I am trying to read in a data frame that contains addresses and simply validate them. However, I am running into issues and not producing any results. The below code should simply output the print statements at the end for each of the rows in the data frame.
I would like the function to get the names of its variables from the columns in the data frame that contains the proper information.
For example: When reading in the data, the function should get its address variable from the Street1 column. Likewise, City, should come from City column, State from state and Zipcode from zipcode.
So for the first iteration, the function should store the variables as follows:
The ultimate goal will be to get this to append a county column to the end of each row with the proper county from the API. However, I am not able to get this to run without errors. Any assistance would be helpful. If needed, you can obtain a free API key for 250 calls per month from the SmartyStreets website. The code that I have included comes from the examples on github. This may not be the most efficient way to do this, if you have a more efficient way to code this, feel free to include that in your response. The code used and error found is shown below.
When this runs, I get the following error:
TypeError: ("'NoneType' object is not callable", 'occurred at index Steet1')
algorithm - 如何衡量地址自动建议的相关性?
我对自动建议世界相当陌生。我感兴趣的领域是为部分地址(输入)提供前“N”个地址建议(输出)。就像您输入部分地址时谷歌地图或优步应用程序如何做一样。
我探索了一些技术,例如 Elastic Search 的 Completion Suggestion、Apache Solr 的 Suggestion Component。
我提出了查询和数据索引的多种组合,以使用可用的地理空间信息(如地理编码(纬度、经度)或城市或州(因国家而异,如日本的省)而异)来执行最佳字符串。
[附带问题 1:对于这个用例,Apache Solr 与 Elastic Search 哪个更好?]
假设有标准地址数据存储(保存大约 1 亿个地址)来提供地址建议(输出),并且有一组部分地址(输入,比如大约 10 万个部分地址)。还假设我知道部分 100 K 部分地址的完整地址,或者换句话说,我知道这些部分地址的预期完成值。
现在我想根据建议地址的相关性进行实验并评估每个组合。
这是我目前对相关性测量的理解:
key stroke versus matching percentage (using levenshtein distance algo) of suggested address with partial address * (multiply by) 1/N position-number in the suggestion list.
我想从数学上推导出我的建议的质量。请评估上述测量公式(可能完全错误,但请解释其背后的原因)。
[问题 2] 在这个用例中如何衡量相关性?
我还阅读了几篇关于衡量推荐引擎/系统质量的文章,其中谈到了Mean Average Precision
orMean Absolute Error
或Mean Squared Error
or Root Mean Squared Error
。
[问题3] 策略是否适用于衡量地址建议应用的相关性?