We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
我最近遇到了同样的需求,并启动了一个名为 Argo 的开源项目: https://github.com/dsposito/ argo
Argo 确定给定跟踪代码的承运商和提供商(第 3 方,例如 Endicia 或 Stamps.com)。
I recently ran into the same need and have started an open source project called Argo: https://github.com/dsposito/argo
Argo determines the shipping carrier and provider (3rd party such as Endicia or Stamps.com) for a given tracking code.
我不了解图书馆,但通过一些搜索我发现了与您类似的问题:
http://answers.google.com/answers/threadview/id/207899.html
FedEX、UPS、USPS 和 AIRBORNE 格式的描述非常好,在类中编写一些静态方法来验证它们并不困难。但您还没有注明要检测哪些运营商、哪个国家/地区等,因此它可能没有太大帮助。
I don't know about library but with some searching I found question similar to yours:
http://answers.google.com/answers/threadview/id/207899.html
The FedEX, UPS, USPS and AIRBORNE formats are described very well and it won't be hard to write some static methods in a class to validate against them. But you haven't noted which carriers you want to detect, which country, etc, so it might not be of much help.
请参阅跟踪号码的正则表达式模式
See Regular Expression patterns for Tracking numbers