Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

Deduce vendor from tracking number

 
Michael Sullivan
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
  • Report post to moderator
I'm looking for some code to determine a shipping carrier (UPS, DHL, FedEx, etc) given a tracking number. This would be similar to how you'd deduce which credit card type from the credit card number.

Yes, I realize that I can just write this with some regex statements and such, but if something is already out there and includes the rules for each carrier (the most important part), I'd be thankful to just impliment it.

Thanks for any comments!

BTW, I'll post this also in the Java area too, since it need not be written in JavaScript per-se. Heck, if it's written in SQL as a stored proc, I'm cool with that!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross post the same question in more than one forum. It wastes people's time when multiple redundant conversations take place.
 
    Bookmark Topic Watch Topic
  • New Topic