Postal Letter

Is there an algorithm to detect if a tracking number is a valid fedex tracking number or not ?

I am looking for a mathematical procedure and not a manual one (like going to fedex.com :) )

Public Comments

  1. It's easy: Go to fedex.com, copy it into their slot on their page for tracking numbers and press "go". If it recognizes it, you are in good shape. If it doesn't, then it probably isn't a fedex number.
  2. You will likely have to go to work for Fedex to find that out. As I understand it the algorithmic procedure they use is proprietary.
  3. 1) If Fedex Express : Tracking number: 123456789012 Consider 1234567890[1][2], the marked 1 is the tens place and the marked 2 is the ones place. Start with the tens place of the tracking number and move left. Multiply each digit with 1 or 3 or 7 in that order and add up the products. (1*3)+(2*1)+(3*7)+(4*3)+(5*1)+ (6*7)+(7*3)+(8*1)+(9*7)+(0*3)+ (1*1) = 178 Then perform a modulus (remainder) operation with 11, 178 % 11 = 2. This is the check digit. The check digit is 0 in the case of 10. This digit should equal the ones place digit of the tracking number to pass the "is it a fedex tracking number ?". 2) If Fedex Ground : http://www.fedex.com/us/certifiedsolutions/ppe/FedEx_Ground_Label_Layout_Specification.pdf
Powered by Yahoo! Answers